thingspeak icon indicating copy to clipboard operation
thingspeak copied to clipboard

Upload not working

Open fabaff opened this issue 8 years ago • 5 comments

For Home Assistant we have a integration which is using this module (see [1] for details). It looks like that there is an issue with the keys and the data part of the request is not containing all details to make a successful upload.

[1] https://github.com/home-assistant/home-assistant/issues/5663

fabaff avatar Jan 31 '17 09:01 fabaff

Would be nice to just use update(value, field). Not be limited to JSON.

fabaff avatar Jan 31 '17 09:01 fabaff

How would you make it work with multiple fields?

mchwalisz avatar Jan 31 '17 09:01 mchwalisz

Sorry, this works with if the payload contains multiple fields like {'field1': 5, 'field2': 5}. If it's text then I was thinking about a list of tuples...forget that.

fabaff avatar Jan 31 '17 11:01 fabaff

Any plan to fix this? If not then we need to look for a different solution as the Home Assistant integration is useless if the update is not working.

I would really appreciate if we can fix this.

fabaff avatar Feb 11 '17 13:02 fabaff

From my testing looks like everything works correctly. in home-assistant/home-assistant#5663 the request is missing api_key. You need write key even for public channels.

Also, you are not limited to JSON, you are limited to dict(). I agree it will be nice feature to have, will come in future releases. I need to implement proper testing first.

mchwalisz avatar Feb 11 '17 20:02 mchwalisz