You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module uses wrong url like https://api.thingspeak.com/channels/CHANNEL/fields/field1.json instead of https://api.thingspeak.com/channels/CHANNEL/fields/1.json in thingspeak.Channel.get_field.
...>python pull.py
Traceback (most recent call last):
File "D:\Anton\Devel\arduino-dev\ComfortMon\scripts\pull.py", line 15, in <module>
print(channel.get_field(field="field1", options={"results": 2}))
File "C:\Program Files\Python39\lib\site-packages\thingspeak\__init__.py", line 53, in get_field
return self._fmt(r)
File "C:\Program Files\Python39\lib\site-packages\thingspeak\__init__.py", line 120, in _fmt
r.raise_for_status()
File "C:\Program Files\Python39\lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.thingspeak.com/channels/143461/fields/field1.json?results=
2&api_key=????????????????
The text was updated successfully, but these errors were encountered:
The module uses wrong url like
https://api.thingspeak.com/channels/CHANNEL/fields/field1.json
instead ofhttps://api.thingspeak.com/channels/CHANNEL/fields/1.json
inthingspeak.Channel.get_field
.The text was updated successfully, but these errors were encountered: