Finalized live update of meter data in web gui

This commit is contained in:
Gunnar Skjold
2020-01-19 21:37:56 +01:00
parent a88291c0f0
commit 0fa3e3585a
18 changed files with 717 additions and 330 deletions

16
addversion.py Normal file
View File

@@ -0,0 +1,16 @@
import os
FILENAME_VERSION_H = 'src/version.h'
version = os.environ.get('GITHUB_REF')
if version == None:
version = "SNAPSHOT"
import datetime
hf = """
#ifndef VERSION
#define VERSION "{}"
#endif
""".format(version)
with open(FILENAME_VERSION_H, 'w+') as f:
f.write(hf)