We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8048295 commit 10749a1Copy full SHA for 10749a1
logger/log.py
@@ -142,7 +142,9 @@ def send_to_rest(path, t):
142
for r in records:
143
data = {"datetime": r[0], "sensor_id": r[1], "value": r[2]}
144
data_json = json.dumps(data)
145
+ print("Sending to " + full_url + "...")
146
response = requests.post(full_url, data=data_json, headers=headers, timeout=10)
147
+ print("HTTP response", response)
148
if response.status_code == requests.codes.ok:
149
delete_record_from_db(path, r)
150
0 commit comments