From 24270fa618c65b7ab3ef27e16dcfe60c28f65809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20K=C3=B6pferl?= Date: Sat, 16 Jan 2021 21:04:46 +0100 Subject: [PATCH] syntax --- src/temp+feucht-DHT22.py | 2 +- update.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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