add device

master
ademant 2019-06-05 15:37:21 +02:00
parent 441426df01
commit 90c40bcf04
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
{
"wait": 5,
"device": "rasolar",
"opensensemap":
{
"enable": 1,

View File

@ -16,6 +16,9 @@ cf=open(configfile,"r")
log_conf=json.load(cf)
cf.close()
channel_names=["time","CPU_temp"]
devicename=socket.gethostname()
if "device" in log_conf:
devicename=log_conf['device']
a = 2