Disappearing data: downloaded excel data that was posted by python script is missing and not visible in widget
Hi,
I get 200 after a Python post to a channel like this from my Python script:
Ambient light: 13.3 lux Mass is 943.6 g 10:37 that is today, 7/24/2021 Pacific time <Response [200]
Yet the data is not showing up in the widget after 03:07 today and when I export the data it agrees with that:
2021-07-24 02:57:17 MDT 4123 947.4597598 0.833333333
2021-07-24 03:07:18 MDT 4124 947.5867868 0.833333333
here is a code snippet: note it posts every 10 minutes
-----------
request_headers = {'Content-Type':'application/json'}
try:
response = requests.post('http://api.thingspeak.com/update?api_key=' + API_KEY,
json=planta_json, headers=request_headers)
print(response)
except:
print("did not post for some reason")
------------
i never get a "did not post for some reason" debug message from the Python script. its like the data just disappears for some reason.
is there something else in the response i should look at to see why this happens? it will work fine for days then do this.
thanks
5 Kommentare
Zeit (absteigend)and there is no Averaging or other things going on in the widget