Dynamic charts only updated when logged in | 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
Dynamic charts only updated when logged in
No permission to create posts
August 29, 2013
4:19 am
Avatar
Malden

Silver
Members
Forum Posts: 15
Member Since:
June 19, 2013
sp_UserOfflineSmall Offline

Hello,

I have been observing this issue for quite some time now. My dynamic charts on a custom web page are updated automatically only when I am logged into my ThingSpeak account.

The data I am displaying with the chart are from a private channel, but I am supplying the Read-API key in the http request:

https://www.thingspeak.com/channels/1111/charts/1?key=12345678&width=800&height=260&days=1;dynamic=true

Am I doing anything wrong or is this an issue with the API?

Thanks

September 13, 2013
3:18 am
Avatar
Malden

Silver
Members
Forum Posts: 15
Member Since:
June 19, 2013
sp_UserOfflineSmall Offline

Can someone confirm this problem or am I the only one seeing this issue?
It should be easily reproducible with data from any private channel.

December 3, 2013
6:02 pm
Avatar
lee

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

Hi,

You may have a slight syntax error in your URL, try using https://www.thingspeak.com/channels/1111/charts/1?key=12345678&width=800&height=260&days=1&dynamic=true (using the proper key). I changed ";dynamic=true" to "&dynamic=true".

January 27, 2014
9:18 am
Avatar
Malden

Silver
Members
Forum Posts: 15
Member Since:
June 19, 2013
sp_UserOfflineSmall Offline

Hi Lee, thanks for your reply.
My implementation is correct, I just pasted the code incorrectly.

I just retried. As long as I am not logged into my ThingSpeak account, the chart does not update on the web page I created. As soon as I log in, the charts starts to update automatically, without reloading/refreshing the page where the chart is displayed. Can't you reproduce this issue?

January 27, 2014
11:59 am
Avatar
lee

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

Hi Malden,

Yes I was able to reproduce this issue, and it should be fixed now. There were some missing parameters (including the API key) when the dynamic JavaScript callback was being executed. Sorry about that!

lee

January 28, 2014
5:46 am
Avatar
Malden

Silver
Members
Forum Posts: 15
Member Since:
June 19, 2013
sp_UserOfflineSmall Offline

Hi Lee,
thanks a lot for fixing this issue, it is indeed working now. Good work.

Forum Timezone: America/New_York

Most Users Ever Online: 166

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