Thingspeak API - multiple fields
-
Hello,
I'm stuck on a problem sending data on the thingspeak platform (ENV Ⅳ Unit).
I can't send multiple data at the same time on thingspeak. On the other hand, only one data works.Examples (url_thingspeak):
1. only one send works:
http://api.thingspeak.com/update?api_key=AS000000001&field6=1
2. Multiple data sends do not work, I tried several solutions:
http://api.thingspeak.com/update?api_key=AS000000001&field6=' + pression + '&field7=' + temperature + '&field8=' + humidity
http://api.thingspeak.com/update?api_key=AS000000001&field6= + pression + &field7= + temperature + &field8= + humidity
This may be a basic question, but I can't find the solution as a beginner :-(.
Thanks for your help
-
Hello @m5oss
try something like below:
or try using an
Execute Code
block with this content:url_thingspeak = 'http://api.thingspeak.com/update?api_key=A00000056&field1=' + str(pression) + '&field2=' + str(temperature) + '&field3=' + str(humidity)
Thanks
Felix -