December 19, 2019
Hi to all,
when I use the 'Template MATLAB code for visualizing data from a channel as a 2D line plot using'PLOT' function' (ThingSpeak->Apps->Matlab Visualizations) I see a time discrepancy between the data stored in the channel and the plotted data.
The data acquired with 'thingSpeakRead' have a correct timestamp, as I can check exporting them in a .csv file (1 point each 5 minutes).
But when I plot the same (last N) points with the above procedure, I see the data only until -1 hour before- the last stored point. Last plotted data is 1 hour older than last stored data.
I suspect the problem is related to the time zone (i am in the UTC+1 zone) but I am not able to correct the procedure in order to 'align' plotted and stored data.
I found similar topics in the forum but not an effective solution to the problem.
Can someone help me?
Thanks in advance,
March 7, 2017
Is your channel a public channel? If so can you share the channel number so I can take a look at the data?
You can adjust your preferred time zone in account > my Profile
You should be able to adjust the timestamps using a MATLAB analysis. If you read with outputVariable=thingSpeakRead(...,'outputformat','timetable'), you can adjust the timestamps with regular math. You can use something like
newTimes = outputVariable.Timestamps - hours(1); etc.
FYI, MATLAB answers is now the preferred location for ThingSpeak Community support.
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:Soham_Nale, masterhead, shubham mishra, katleenbrown440, avong, vidya
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457