Quantcast
Channel: ThingSpeak IoT Community - All Forums
Viewing all articles
Browse latest Browse all 1833

gmrza on Sum only gives one day's data

$
0
0

Vinod,

the export/clear/import approach seems to have helped.  There is still a little bit of weirdness.

The following URL, even though it specifies "days" as 10, only gives a graph of 5 days:

https://api.thingspeak.com/channels/189600/charts/1?sum=daily&type=column&days=10&results=240

When I add a timezone, it shows 10 days:

https://api.thingspeak.com/channels/189600/charts/1?sum=daily&type=column&days=10&results=240&timezone=Australia%2FMelbourne

As I mentioned in my previous post, the sum is from 11:00 to 10:59:59, not from 0:00 to 23:59:59 - i.e. it is setting the date boundary according to UTC, not according to the timezone I specify.  If you look at the charts for the above two URLs, you will see the total for 20 Nov is 478.47l, and 21 Nov is 44.5l.

You will notice that the readings for 05:00 and 06:00 on the 21st are being added to the total for the 20th.  In UTC, those times were still on the 20th.

 

Regards,

Geoff.


Viewing all articles
Browse latest Browse all 1833

Trending Articles