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

iOS Widget for TeslaFi/Teslamate/TeslaLogger via Scriptable

This site may earn commission on affiliate links.
OK I would love to get this up and running but it's beyond my capability ... I do have a functioning install of TeslaMate running on google cloud, is there someone who would be kind enough to help with the next steps, either by providing a walkthrough or over a teamviewer session or similar? I'll buy you beer ...

TIA

JB
 
So.. I am super stuck (on probably the last step).

I have Teslamate running just fine on a Synology Docker with the teslamate-mqtt-api running as well.

I can successfully access the data on the teslamate-mqtt-api by going to http://192.168..xxx.xx7:3040/car/1?api_key=1234xxxx

I downloaded the scriptable widget and the Tesla data folder and moved the items to my iCloud scriptable folder so that TeslaDataWidget is in the main folder and Tesla_data is a subfolder.

I hardcoded the API URL above using in the parameters.js file (inside Tesla_Data).

When I try to run the script or use the script as a widget, I receive the error 'Error on line 420:29: Expected value of type string but got value of type number.

I am at my wits end and any help would be greatly appreciated.
 
So.. I am super stuck (on probably the last step).

I have Teslamate running just fine on a Synology Docker with the teslamate-mqtt-api running as well.

I can successfully access the data on the teslamate-mqtt-api by going to http://192.168..xxx.xx7:3040/car/1?api_key=1234xxxx

I downloaded the scriptable widget and the Tesla data folder and moved the items to my iCloud scriptable folder so that TeslaDataWidget is in the main folder and Tesla_data is a subfolder.

I hardcoded the API URL above using in the parameters.js file (inside Tesla_Data).

When I try to run the script or use the script as a widget, I receive the error 'Error on line 420:29: Expected value of type string but got value of type number.

I am at my wits end and any help would be greatly appreciated.
I had a similar problem. What worked for me was I had to wake the car, then run the script.
 
I see... The only other I thing I can suggest is to make sure the parameter in question is sent as a string, which normally means it should be in quotation marks ("http://192.168..xxx.xx7:3040/car/1?api_key=1234xxxx").
 
I see... The only other I thing I can suggest is to make sure the parameter in question is sent as a string, which normally means it should be in quotation marks ("http://192.168..xxx.xx7:3040/car/1?api_key=1234xxxx").
Appreciate the help but my IP address is within quotes inside of the parameters.js file.

Like I said, I can see the end points by brining up the URL in Safari. I've even made Siri Shortcuts grabbing the dictionary data to make sure I am not crazy, but for the life of me I cannot understand why I have 'Error on line 420:29: Expected value of type string but got value of type number.'
 
Appreciate the help but my IP address is within quotes inside of the parameters.js file.

Like I said, I can see the end points by brining up the URL in Safari. I've even made Siri Shortcuts grabbing the dictionary data to make sure I am not crazy, but for the life of me I cannot understand why I have 'Error on line 420:29: Expected value of type string but got value of type number.'
Does anyone have any insight?
 
Working here, but not good formatting. Any ideas?
screen2.gif
screen1.gif