Help! rate limit seems not to apply | 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
Help! rate limit seems not to apply
No permission to create posts
February 19, 2014
8:19 am
Avatar
chrisjmears

Gold
Members
Forum Posts: 54
Member Since:
April 26, 2013
sp_UserOfflineSmall Offline

I have an arduino yun using the execute parameter on posting. I have set my test code to try to send things to thingspeak every 5 seconds assuming 1 in 3 requests will hit.

within seconds of firing up the yun I have a lot of entries appearing in the thingspeak channel

https://thingspeak.com/channels/5384#publicview

Thingspeak appears to be either ignoring the rate limit when you call the execute parameter in the url or perhaps there is some internal bug which is duplicating the results as I cant see anything in my code which would try and post more than once every 5 seconds.

February 19, 2014
11:57 am
Avatar
lee

Admin
Forum Posts: 457
Member Since:
March 14, 2011
sp_UserOfflineSmall Offline

Hi,

Are you logging the Talkback commands to a Channel? If so, the normal rate limits are bypassed so that you have an accurate log of executed commands.

lee

February 21, 2014
7:30 am
Avatar
chrisjmears

Gold
Members
Forum Posts: 54
Member Since:
April 26, 2013
sp_UserOfflineSmall Offline

Hi Lee

Basically all i've done is add talkback_key=WHATEVER_MY TALKBACK_KEY_IS to the query string to grab the latest command.

So my initial get posted the thingspeak was

http://api.thingspeak.com/update?&field1=XX&field2=XX&field3=XX&statuscode=""

and my post to update thingspeak and grab the latest instruction all in one reads

http://api.thingspeak.com/update?&field1=XX&field2=XX&field3=XX&statuscode=""& talkback_key=WHATEVER_MY TALKBACK_KEY_IS

With the second string, I seem to get loads of talkback entries rapidly stacking up. About one every second or so. Have a look at this channel feed and note the timings between entries.

http://api.thingspeak.com/channels/5384/feed.csv

Previously I was happily relying on the 15 second api limit. Because the chart api seems to only retrieve a maximum of 8000 records, with a 15 second interval between posts this meant that 3 days worth of data only came to 5760 records. As its now posting every second I can only get a few hours of records max.

Another weird thing, but I will need to check my code. I am sure my code only tries to post every 5 seconds so 2 out of 3 attempts are meant to bounce off the rate limit. I could have made a mistake with my loop which I need to check out but I am totally bamboozled why I am getting per second posts. If its not my code, is something internal happening with the talkback code which is duplicating entried?

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
32 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:

tran, huldacormier, bogart, estebanmateo93, mikewrite, onlinebusiness

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457