WiServer | ThingSpeak API | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.
Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
WiServer
No permission to create posts
July 12, 2013
1:44 am
Avatar
airsoftsoldrecn9
New Member
Members
Forum Posts: 3
Member Since:
July 12, 2013
sp_UserOfflineSmall Offline

Hello I am wanting to connect a bit older device to Thingspeak for data processing, a linksprite diamondback using the WiServer API. I am having trouble establishing a connection on occasion and I dont think I have been able to update my channel datastreams. Is there a way I can view the header information as received on the server side? Pachube/Cosm/Xively has a request log available for debugging connection requests which I think is what I am looking for. I can post code if desired.

Connected to api.thingspeak.com
Connection:close
X-THINGSPEAKAPIKEY:DO1KP5UU84IG4AGD
TX 212 bytes
RX 0 bytes from api.thingspeak.com
Connection:close
X-THINGSPEAKAPIKEY:DO1KP5UU84IG4AGD
RX 164 bytes from api.thingspeak.com
Connection:close
X-THINGSPEAKAPIKEY:DO1KP5UU84IG4AGD
HTTP/1.1 200 OK
Server: nginx/0.8.53
Date: Fri, 12 Jul 2013 06:35:31 GMT
Content-Type: text/html; charset=utf-8
Connection: close
Vary: Accept-Encoding
StatusRX 136 bytes from api.thingspeak.com
Connection:close
X-THINGSPEAKAPIKEY:DO1KP5UU84IG4AGD
: 200
ETag: "c9f0f895fb98ab9159f51fd0297e236d"
Cache-Control: max-age=0, private, must-revalidate
X-Rack-Cache: inval <-------------------------------transmission cut short

I think my device is having a crashing problem too so I will have to find out what is causing that as well (maybe other people use this POS device too and might have answers to that Yell)

Thanks alot guys for taking a look! Thinkspeak api is less convoluted than Xively and you guys embrace legacy devices, you support plugins (so I can use google guages easily Smile ) and best of all its open source! Would definitely like to support in any way I can.

July 13, 2013
11:30 pm
Avatar
airsoftsoldrecn9
New Member
Members
Forum Posts: 3
Member Since:
July 12, 2013
sp_UserOfflineSmall Offline

Also thought I would try using GET but in this manner.
http://api.thingspeak.com/update?key=DO1KP5UU84IG4AGD&field1=20.0

Again I think something is possibly incorrect in the header that I am sending so I am wondering if it would be at all possible to see some server side information.

Got connection for api.thingspeak.com
Connected to api.thingspeak.com
TX 106 bytes
0 - 105 of 106
RX 0 bytes from api.thingspeak.com
Time:1
Free mem:779
RX 196 bytes from api.thingspeak.com
HTTP/1.1 404 Not Found
Date: Sun, 14 Jul 2013 04:25:58 GMT
Content-Type: application/json; charset=utf-8
Connection: close

{"title":"Not found","errors":"No route matches [GET] \"/update\""}Ended connection with api.thingspeak.com

July 14, 2013
2:29 am
Avatar
airsoftsoldrecn9
New Member
Members
Forum Posts: 3
Member Since:
July 12, 2013
sp_UserOfflineSmall Offline

Solved that issue I think. Below is the important stuff.

uint8 thingspeak_ip[] = {184,106,153,149};
char energy_monitor_channel[] = "api.thingspeak.com\nX-THINGSPEAKAPIKEY:DO1KP5UU84IG4AGD";

POSTrequest postDC_V(thingspeak_ip, 80, energy_monitor_channel, "", FeedUpdater);

void FeedUpdater(){
WiServer.print("field1=");
WiServer.print(31);
WiServer.print("&field2=");
WiServer.print(freeRam() - 700);
WiServer.print("&field3=");
WiServer.print(freeRam() - 655);
}

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Advantagetreeexperts, laundrydaddyuk, techhhelp5, ken, tran, huldacormier

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457