obscure problem with sendtohtttp (and thingspeak)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
burdal1
Normal user
Posts: 3
Joined: 30 Nov 2019, 09:42

obscure problem with sendtohtttp (and thingspeak)

#1 Post by burdal1 » 30 Nov 2019, 11:05

Hi, i have problem with sendtohttp since mega-20190813. I use sendtohttp in rules to update thingspeak channel once per minute. For test purpose i have running MinWeb server at bur.dubya.net:8000.

Code: Select all

SendToHTTP api.thingspeak.com,80,/update?api_key=<secret>&field1=10&field2=1
SendToHTTP bur.dubya.net,8000,/update?api_key=<secret>&field1=10&field2=1

With mega-20190809: it works - thingspeak channel is updated and in MiniWeb server logs i can find request with request path: update?api_key=<secret>&field1=10&field2=1
With mega-20190813: doesn't work - thingspeak channel is NOT updated BUT in MiniWeb server logs i can found correct request
With mega-20191103: same situation as with mega-20190813

with mega-20191130 i used

Code: Select all

SendToHTTP api.thingspeak.com,80,"/update?api_key=<secret>&field1=10&field2=1"
SendToHTTP bur.dubya.net,8000,"/update?api_key=<secret>&field1=10&field2=1"

and the results are same a mega-20190813. In MiniWeb server everythings look ok but Thingspeak channel is not updated.

It is not important if i use "normal" or "test" version. it works equally.
Do you have any idea where is the problem? I can't find the differences between mega-20190813 and mega-20190809. Thanks.

TD-er
Core team member
Posts: 1922
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: obscure problem with sendtohtttp (and thingspeak)

#2 Post by TD-er » 30 Nov 2019, 11:14

I do know that ThingSpeak does require to accept the response from the server.
That's a change they made at the beginning of this year.
But that doesn't really explain why older builds are still working with sendtohttp.

By the way I removed your API keys from your post.

burdal1
Normal user
Posts: 3
Joined: 30 Nov 2019, 09:42

Re: obscure problem with sendtohtttp (and thingspeak)

#3 Post by burdal1 » 30 Nov 2019, 11:19

TD-er wrote:
30 Nov 2019, 11:14
By the way I removed your API keys from your post.
Thanks.

Is here any alternative? I need send over 4 values from different sensor in one request. I can use dummy device+thingspeak controller, but dummy device can collect only 4 values.

TD-er
Core team member
Posts: 1922
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: obscure problem with sendtohtttp (and thingspeak)

#4 Post by TD-er » 30 Nov 2019, 12:23

Well you can copy various values to a dummy using taskvalueset and then call for taskrun to "execute" the dummy.
If you set the thingspeak controller to that dummy, then you should be able to send the values.
4 should be enough then, right?
Otherwise you can use multiple dummy tasks. Just make sure to set the minimum send interval of the controller to an appropriate value for thingspeak if you're using the free version.

burdal1
Normal user
Posts: 3
Joined: 30 Nov 2019, 09:42

Re: obscure problem with sendtohtttp (and thingspeak)

#5 Post by burdal1 » 30 Nov 2019, 13:04

TD-er wrote:
30 Nov 2019, 12:23
4 should be enough then, right?
Otherwise you can use multiple dummy tasks.
This is the problem, i need send more than 4 values in one request - at the same time with one timestamp. I use the highcharts graph to display the data and i need display all field from one moment together.

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests