r/TeslaModel3 • • Oct 13 '20

iOS Widget using Scriptable and TeslaFi API

https://github.com/DrieStone/TeslaFi-Widget
9 Upvotes

9 comments sorted by

2

u/[deleted] Oct 13 '20

I wasn't thrilled with the other widgets out there. I wanted to limit the number of services talking to my car (one app wouldn't let the car sleep, not sure which one). Figured I'd use the TeslaFi API to give me a status widget on my homescreen.

1

u/lcghost Oct 13 '20

This is great, but I’m not super great with the Scriptable app. Any simple walkthrough anywhere?

3

u/[deleted] Oct 13 '20

On the github page I outlined the process.

  • Download Scriptable to your iOS device

  • Download the TeslaFi Widget.js file to your iCloud/Scriptable folder

  • Create a small scriptable widget

  • Under widget options, select "TeslaFi Widget" and enter the API key into the widget parameters

2

u/Jovack1 Oct 14 '20 edited Oct 14 '20

I can not seem to get past the error "Error on line 6: SyntaxError: Unexpected token '<'

Cancel that. Had an issue with my github download!

1

u/lo-cal-host Oct 15 '20

Seeing the same. How did you "fix" this?

1

u/HobbitFootAussie Oct 14 '20

I’d like the same - but with TeslaMate. I’m going to give it a go. :)

1

u/[deleted] Oct 14 '20

I thought about trying to support other APIs if they're available.

I don't have a TeslaMate account, but I'd be willing to try to support it as much as possible.

1

u/HobbitFootAussie Oct 14 '20

Teslamate is essentially a self-hosted TeslaFi.

1

u/[deleted] Oct 14 '20

I'll take a look.