diff --git a/src/temp+feucht-DHT22.py b/src/temp+feucht-DHT22.py index 37cd691..bc5c08f 100644 --- a/src/temp+feucht-DHT22.py +++ b/src/temp+feucht-DHT22.py @@ -56,7 +56,7 @@ while True: print("no access to local grafana?") pass try: - cmd="curl --header \"Content-Type: application/json\" -XPOST -d '{\"temperature\": "+str(temperature)+",\"humidity\": "+str(humidity) +}' "+hiveeyesurl+sensor['Ziel']+"/data" + cmd="curl --header \"Content-Type: application/json\" -XPOST -d '{\"temperature\": "+str(temperature)+",\"humidity\": "+str(humidity) +"}' "+hiveeyesurl+sensor['Ziel']+"/data" print (cmd) os.system(cmd) except: diff --git a/update.sh b/update.sh index a53c845..57012c0 100644 --- a/update.sh +++ b/update.sh @@ -39,6 +39,7 @@ chmod 644 /etc/systemd/system/temp-feuchte-sammler.service systemctl enable temp-feuchte-sammler systemctl enable weight-sammler +echo "Restarte beide Services" # und starten systemctl restart temp-feuchte-sammler systemctl restart weight-sammler