DrieStone / TeslaData-Widget

A Scriptable widget to pull data from the TeslaFi API
59 stars 18 forks source link

Error on line 633:33: Invalid canvas size: -3.1839999999999997 by 18.0 #8

Closed VGbranix closed 3 years ago

VGbranix commented 3 years ago

I am not allowed to use iCloud on my iPhone. I did a manual install, replaced all FileManager.iCloud with FileManager.local, (added the TeslaFi API link) and I receive the following error:

Error on line 633:33: Invalid canvas size: -3.1839999999999997 by 18.0

Any further thoughts?

VGbranix commented 3 years ago

Figured out that my car was sleeping, and TeslaFi did not return proper valid data for the widget unless queried for:

JSON output of last data point with charge data - https://www.teslafi.com/feed.php?token=TOKEN&command=lastGood

So, if your vehicle is sleeping, add make sure you add your token, as well as '&command=lastGood' to get valid data.

DrieStone commented 3 years ago

There should have been a "lastGood" if you just provide the API key. I've taken a bit of a pause on this until the new year. I'll make sure I add a non-iCloud option in the future.

Thanks!