Is it possible? I'm using telnet on a raspberry pi from the command line, trying to update to my thingspeak channel.
Here is what I did. it gave me a 200 OK response, but no data shows up on my Thingspeak channel:
sudo telnet api.thingspeak.com 80
POST /update HTTP/1.1
This is the response i get:
HTTP/1.1 200 OK
Date: Fri, 26 Sep 2014 02:54:26 GMT
Content-Type: text/html; charset=utf-8
Status: 200 OK
Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH
Access-Control-Allow-Headers: origin, content-type, X-Requested-With
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: request_method=POST; path=/
Connection closed by foreign host.
After this, i check my Thingspeak channel, but nothing ever shows up there.
It looks like your request to ThingSpeak is valid, but the POST data is not being set correctly for field1. I'm not sure how to send the request directly through telnet, but you may have more success using a GET instead of a POST.
You can see the blank values in your Channel here: https://thingspeak.com/channels/14918/feed.json?key=2ENL8UUKM3T82Y8J .
I had to end up using wireshark to look at the packets that were going out after I did the telnet. It ended up being an extra space in between the content-length and the field data, so the POST data was not being sent correctly. I corrected that and it works now.
thanks for the help
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee