February 28, 2017
I have problems with the time stamps. What I wanted to do is to send data that I have in my laptop to Thingspeak, so I can visualize it in the web. I need that the time stamp of the data that appear in thingspeak be the same as the one that the data have in my laptop, which is the time where the data was created in the first place. However, Thingspeak shift the time to adjust for local time which is a problem in my case, because I have weather data and I don't want my solar radiation sensor peak at 5-6 am.
As an example, when I upload the data from Matlab using thingspeakwrite with a time stamp of 04-Sep-2018 16:23:43 , in Thingspeak appear shifted to 04-Sep-2018 08:23:43 (UTC -7), then when I download the same data using the data export button, this value appear shifted again to 04-Sep-2018 12:23:43 (UTC-3). What I would really like to have is the option that Thingspeak maintain the timestamp instead of keep changing it. Is there a way to do this? Can I configure the UTC time in Thingspeak or in Matlab? It seem that one way to control the shift is changing my laptop local time, but hopefully there will be a better option as a rather prefer to maintain my laptop at the correct time.
I can see that there is an option in the data import/export label to modify the UTC time, but it seems that this is just for manually upload data to Thingspeak which is not what I want to do.
Thank you very much for the help.
March 7, 2017
The REST call for readData will allow you to use timezones.
In MATLAB, you could do something like this (replace and api key):
The full list of timezones is here:
The datetime read in this method will preserve the timezone information. When you re-upload it, ThingSpeak keep the same format.
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:Advantagetreeexperts, laundrydaddyuk, techhhelp5, ken, tran, huldacormier
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457