Skip to content

Did Solar Power API Responses Change? #348

Answered by GeorgeIoak
GeorgeIoak asked this question in Q&A
Discussion options

You must be logged in to vote

So it seems that all I needed to do was to adjust the end_date hour. Before passing hour 7 resulted in all 96 data points but I guess because of daylight savings change I now have to pass hour 6 in order to get all the data.

https://owner-api.teslamotors.com/api/1/energy_sites/my-site_id/calendar_history?kind=power&end_date=2021-03-20T06:59:59Z

I was curious how the hour impacted the returned data so I looped through all 24 hours and this was the result:

Hour Max Returned Data # of Data Returned
0 2021-03-09T17:45:00-07:00 72
1 2021-03-09T18:45:00-07:00 76
2 2021-03-09T19:45:00-07:00 80
3 2021-03-09T20:45:00-07:00 84
4 2021-03-09T21:45:00-07:00 88
5 2021-03-09T22:45:00-0…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@GeorgeIoak
Comment options

@GeorgeIoak
Comment options

@GeorgeIoak
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by GeorgeIoak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants