This commit is contained in:
Robert Köpferl 2021-01-16 21:04:46 +01:00
parent 2558095602
commit 24270fa618
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -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