syntax
This commit is contained in:
parent
2558095602
commit
24270fa618
|
@ -56,7 +56,7 @@ while True:
|
||||||
print("no access to local grafana?")
|
print("no access to local grafana?")
|
||||||
pass
|
pass
|
||||||
try:
|
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)
|
print (cmd)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
except:
|
except:
|
||||||
|
|
|
@ -39,6 +39,7 @@ chmod 644 /etc/systemd/system/temp-feuchte-sammler.service
|
||||||
systemctl enable temp-feuchte-sammler
|
systemctl enable temp-feuchte-sammler
|
||||||
systemctl enable weight-sammler
|
systemctl enable weight-sammler
|
||||||
|
|
||||||
|
echo "Restarte beide Services"
|
||||||
# und starten
|
# und starten
|
||||||
systemctl restart temp-feuchte-sammler
|
systemctl restart temp-feuchte-sammler
|
||||||
systemctl restart weight-sammler
|
systemctl restart weight-sammler
|
||||||
|
|
Loading…
Reference in New Issue