Special signs in 'append=' | ThingSpeak API | Forum

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
Special signs in 'append='
No permission to create posts
August 3, 2011
6:58 am
Avatar
spumanti
Denmark

Silver
Members
Forum Posts: 5
Member Since:
July 19, 2011
sp_UserOfflineSmall Offline

Hi TS.

 

I am playing with the API for showing the latest value of a given chart.

 

As a test, I'm using this channel feed:

http://api.thingspeak.com/channels/9/field/1/last.txt

 

Id' like to append the degree sign, so the link i'm using looks like this:

http://api.thingspeak.com/channels/9/field/1/last.txt?append=C

 

Now, Id' like to use the degree ° sign in the append code, but so far, I have not been successful.

I have tried the following for the append tag:

ALT+0176   (which inserts °)

%B0   (URL encoded)

&deg   (HTML code)

%26deg   (substitute & with %26)

 

Neither has worked. Could you please advise how to use special signs in the append tag?

 

Also; it would be nice if you could add the '&dynamic=' tag to the API for call ing the latest value. That way, if i include the link in an iframe, it would always show the latest value in the iframe, without me having to reload the page.

 

(I'm imagining something like this:

<iframe width="60" height="30" style="border: 1px solid #cccccc;" src="http://api.thingspeak.com/channels/9/field/1/last.txt?append= C&&dynamic=true"></iframe>

)

August 3, 2011
3:07 pm
Avatar
lee

Admin
Forum Posts: 457
Member Since:
March 14, 2011
sp_UserOfflineSmall Offline
August 4, 2011
3:07 am
Avatar
spumanti
Denmark

Silver
Members
Forum Posts: 5
Member Since:
July 19, 2011
sp_UserOfflineSmall Offline

Thanks lee.

 

Works great 🙂

Forum Timezone: America/New_York

Most Users Ever Online: 166

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

briskpanda, Dejw0089, Yassine Ben Salah, anis, 43994554AKS, suda

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457