Did Solar Power API Responses Change? #348
-
I had code working for more than a month after the OAuth changes. I think my token expired earlier this week and I've been able to get new tokens but my code that was working isn't now. Here's what I send:
where mysite_id is replaced my actual 12 digit ID and now when I check the response I'm seeing this:
Where this is what I used to get (96 readings for each day):
No matter what I check I only get back 4 records and the data is always 0. I'm able to "get products" which returns the serial number which I believe tells me that I did successfully get a new token so I'm at a loss as to what's going on. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
With a query like the one above, I'm now getting 5 minute data like what you originally had displayed above. |
Beta Was this translation helpful? Give feedback.
-
So it seems that all I needed to do was to adjust the
I was curious how the hour impacted the returned data so I looped through all 24 hours and this was the result:
|
Beta Was this translation helpful? Give feedback.
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.I was curious how the hour impacted the returned data so I looped through all 24 hours and this was the result: