Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

Anyone else missing March 14th data?

This site may earn commission on affiliate links.

sorka

Well-Known Member
Feb 28, 2015
11,688
9,664
Merced, CA
I was comparing daily data in my dashboard between Tesla and PG&E find out why I had a small discrepancy. Then I noticed that the rest api results had a hole. Nothing for 3/14/21. So I opened the app and scrolled back to 3/14 and the graph appears to be complete for all the power flows but when I click download data button, it doesn't actually attach anything to the email.
Screenshot_20210429-200230_Tesla.jpg
 
I'm able to download March 14th from my Tesla app (v. 3.10.11 IOS), though I don't do that anymore. I've been hitting the API directly from a python script. I did, however, have a bug in my script that broke the script after the daylight savings change:

 
Did you try downloading other days? There are a number of people (myself included) who cannot download anything on recent Android devices. Your description matches what occurs for me on all days. IOS seems unaffected.

On 3/14, there is a visual bug, where the hour labels (4/8/noon/4/8) are incorrect - instead, all 23 hours are spread out evenly across the screen, so the label for 4 AM is actually about 4:50 AM, which you can see if you move your finger across the screen to get individual time data. Additionally, times before 2:00 AM on 3/14 show the UTC offset ("-5:00" for me.) I believe that behavior occurs for all of winter when on summer time, and vice versa.

(As a side note, I really wish there was a calendar widget or a way to click on a month/day from the year/month/week charts to get to a day faster.)
 
Can you tell me what your end dates look like in the call? Are you using the same API?

Before I fixed my bug, the dates looked like this:
Code:
converted 2021-03-13 23:59:59 to /calendar_history?kind=power&end_date=2021-03-14T04:59:59Z
converted 2021-03-14 23:59:59 to /calendar_history?kind=power&end_date=2021-03-15T03:59:59Z

After fixing the bug (by including time zone information when creating the date objects), they looked like this:
Code:
converted 2021-03-13 23:59:59-04:00 to /calendar_history?kind=power&end_date=2021-03-14T03:59:59Z
converted 2021-03-14 23:59:59-04:00 to /calendar_history?kind=power&end_date=2021-03-15T03:59:59Z
 
  • Informative
Reactions: sorka