1
0
Fork 0
mirror of https://github.com/lumapu/ahoy.git synced 2025-05-17 10:56:10 +02:00

* new NRF24 lib (1.4.2 -> 1.4.5)

* add build info on index.html (like OpenDTU)
* add Discord Link to index.html
This commit is contained in:
lumapu 2022-08-08 22:06:33 +02:00
parent 3caa3392ab
commit 155f9e3f41
8 changed files with 44 additions and 8 deletions
tools/esp8266/scripts

View file

@ -0,0 +1,25 @@
import os
from datetime import date
def readVersion(path, infile):
f = open(path + infile, "r")
lines = f.readlines()
f.close()
today = date.today()
search = ["_MAJOR", "_MINOR", "_PATCH"]
version = today.strftime("%y%m%d") + "_ahoy_"
for line in lines:
if(line.find("VERSION_") != -1):
for s in search:
p = line.find(s)
if(p != -1):
version += line[p+13:].rstrip() + "."
version = version[:-1] + "_esp8266.bin"
src = path + ".pio/build/d1_mini/firmware.bin"
dst = path + ".pio/build/d1_mini/out/" + version
os.mkdir(path + ".pio/build/d1_mini/out/")
os.rename(src, dst)
readVersion("../", "defines.h")