set w1 to new sensor

master
ademant 2019-08-02 20:56:19 +02:00
parent 7a639da7c8
commit c145bd2092
2 changed files with 4 additions and 8 deletions

View File

@ -1,2 +1,2 @@
sudo apt-get install python3-psutil python3-serial python3-numpy python3-gnupg python3-bottle python3-pip
sudo pip3 install RPi.bme280 serial Adafruit_MCP9808 Adafruit_ADS1x15
sudo pip3 install RPi.bme280 serial Adafruit_MCP9808 Adafruit_ADS1x15 smbus w1thermsensor

View File

@ -17,7 +17,7 @@ cf.close()
channel_names=[]
channel_info={}
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]
@ -44,12 +44,8 @@ if "w1therm" in log_conf:
if 'port' in lcmq:
mport=lcmq['port']
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
if bw1:
w1={}
for n in parameter: