Specifying timestamp while sending value ? | 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
Specifying timestamp while sending value ?
No permission to create posts
July 17, 2011
9:55 am
Avatar
sirloon
New Member
Members
Forum Posts: 3
Member Since:
July 17, 2011
sp_UserOfflineSmall Offline

Hi guys,

 

I'm trying to experiment ThingSpeak in order to plug several "things" to send data. The problem I can see by now is it doesn't seem to be possible to actually specify the "created_at" field in GET/POST requests sent to record value. I can't expect my things to alway be online and send their data as the events occur.

 

So is there a way to force value's timestamp while sending data ?

 

Thanks

Seb

July 17, 2011
9:58 pm
Avatar
Hans
Natick, MA

Admin
Forum Posts: 396
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

We are checking on this.

July 18, 2011
12:21 am
Avatar
lee

Admin
Forum Posts: 457
Member Since:
March 14, 2011
sp_UserOfflineSmall Offline
July 18, 2011
12:31 am
Avatar
sirloon
New Member
Members
Forum Posts: 3
Member Since:
July 17, 2011
sp_UserOfflineSmall Offline

OK, great it works, thanks ! I remember having tried this but got no value recorded... Well I must have mistaken something, thanks anyway.

 

Cheers,

Seb

February 18, 2016
7:19 am
Avatar
rodri
Italy

Silver
Members
Forum Posts: 19
Member Since:
May 23, 2014
sp_UserOfflineSmall Offline

Hi Lee, what does T and Z mean?
&created_at=2011-07-18T01:02:03Z
Best,
Rodri

February 18, 2016
8:53 am
Avatar
Hans
Natick, MA

Admin
Forum Posts: 396
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

Hi... The T just separates the date from the time.

Z is the UTC time zone.

March 18, 2017
10:54 pm
Avatar
massa
New Member
Members
Forum Posts: 1
Member Since:
March 18, 2017
sp_UserOfflineSmall Offline

How to send 2 or more values for the same field and each value with timestamp?

March 19, 2017
5:17 am
Avatar
rw950431

Top
Members
Forum Posts: 261
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

As far as I know its not possible to assign different timestamps to fields in the same update- the created_at value is assumed to apply to all values you send in a single update.

 

You could, if you really wanted to, set a timestamp value as another field (thingspeak fields dont have to be only numbers) but you would have to devise your own processing and graphing routines.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

frenk0, Jassonchulp, MatGame, Domnesich, saxenadj, concepcionoa3

Administrators: Hans: 387, lee: 457