adjust mcp9808 to new server system

master
ademant 2019-08-02 17:23:52 +02:00
parent 9c7e590942
commit 841096239a
1 changed files with 0 additions and 4 deletions

View File

@ -40,11 +40,7 @@ if "mcp9808" in log_conf:
mcp_data=meas_data(var_name="temperature",multiplicator=1000,mean_count=parameter['cycle'],store_each_cycle=True,ring_length=parameter['ring_length'],device=parameter['device'],sensor="MCP9808",i2c=0,store_file="/home/pi/log/data_temperature",sigma=mcp_sigma,digits=4)
if "sqlserver" in log_conf:
hostname="localhost"
# if "host" in log_conf['sqlserver']:
# hostname=log_conf['sqlserver']['host']
port=8080
# if "port" in log_conf['sqlserver']:
# port=int(log_conf['sqlserver']['port'])
mcp_data.set_sql(host=hostname,port=port)
if "opensensemap" in log_conf['mcp9808']:
osm=log_conf['mcp9808']['opensensemap']