Visualization shows only the last 8 days
Show older comments
The channel is collecting the data since starting May, but in the visualization i can only see the last 8 days.
What am i doing wrong? see my code below
% Template MATLAB code for visualizing data using the YYAXIS and PLOT functions.
readChannelID = [xxx];
fieldID1 = [1];
readAPIKey = 'xxx';
startTime = datetime(2022,05,02,09,15,00);
endTime= startTime+ days(80);
%% Read Data %%
[data1, time1] = thingSpeakRead(readChannelID,'Field',fieldID1,'dateRange',[startTime endTime],'ReadKey', readAPIKey);
[data4, time4] = thingSpeakRead(readChannelID,'Field',fieldID4,'dateRange',[startTime endTime],'ReadKey', readAPIKey);
%% Visualize Data %%
yyaxis left;
plot(time1, data1,'b');
ylabel('kg Waage');
ylim([22 80 ]);
yyaxis right;
plot(time4, data4,'r');
ylabel('Grad Außentemperatur');
ylim([-60 40]);
Accepted Answer
More Answers (0)
Communities
More Answers in the ThingSpeak Community
Categories
Find more on Package MATLAB Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!