Updating multiple Thingspeak fields with forced timestamp | Arduino | 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
Updating multiple Thingspeak fields with forced timestamp
No permission to create posts
July 12, 2018
10:48 am
Avatar
maximelanoelle
New Member
Members
Forum Posts: 1
Member Since:
July 12, 2018
sp_UserOfflineSmall Offline

Hello
First post in this forum, let me know if I should have posted in a different location.

I am trying to send data to Thingspeak retrospectively, with a forced timestamp. I intent to use Arduino, and specifically the two functions "ThingSpeak.setField" followed by "ThingSpeak.writeFields(myChannelNumber_02, myWriteAPIKey_02);"

I understand how to send data and let Thingspeak specifies automatically the time value when the function gets called.
However, I would like to be able to retrospectively add data points in ThingSpeak for specific chosen timestamps.
Is there a way to do this?

Thanks in advance
Max

July 12, 2018
4:20 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 332
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Looks like a perfect place to post.

You can use the setCreatedAt() in the ThingSpeak Communication library.
i.e. ThingSpeak.setCreatedAt("2017-01-06T13:56:28");

You can find the documentation for all the available functions in your Arduino libraries folder, then look in thingSpeak , extras and then class_thing_speak_class.html
here is the partial path:
/Arduino/libraries/ThingSpeak/extras/documentation/class_thing_speak_class.html

Forum Timezone: America/New_York

Most Users Ever Online: 114

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

James181, kimberlypg2, JamesAdorb, waynesmith, paulettebw60, ashleytb4

Administrators: Hans: 387, lee: 457