change tsl2591 to new server
parent
800a9345dc
commit
d8a6b38af9
|
@ -12,7 +12,7 @@ cf=open(configfile,"r")
|
|||
log_conf=json.load(cf)
|
||||
cf.close()
|
||||
|
||||
parameter={"device":socket.gethostname(),"mean_count":5,"ring_length":10,"wait":0.5,"sigma":2,"cycle":10,"check_last":0}
|
||||
parameter={"device":socket.gethostname(),"mean_count":5,"ring_length":10,"wait":0.5,"sigma":2,"cycle":10,"check_last":0,"gpg_keyid":""}
|
||||
for n in parameter:
|
||||
if n in log_conf:
|
||||
parameter[n]=log_conf[n]
|
||||
|
@ -60,12 +60,8 @@ if "tsl2591" in log_conf:
|
|||
if bmqtt:
|
||||
tsl_data.set_mqtt(broker=mbroker,port=mport)
|
||||
if "sqlserver" in log_conf:
|
||||
hostname="banana"
|
||||
if "host" in log_conf['sqlserver']:
|
||||
hostname=log_conf['sqlserver']['host']
|
||||
port=24048
|
||||
if "port" in log_conf['sqlserver']:
|
||||
port=int(log_conf['sqlserver']['port'])
|
||||
hostname="localhost"
|
||||
port=8080
|
||||
tsl_data.set_sql(host=hostname,port=port)
|
||||
if "opensensemap" in log_conf['tsl2591']:
|
||||
osm=log_conf['tsl2591']['opensensemap']
|
||||
|
|
Loading…
Reference in New Issue