Tesla Model S & X Script for Indigo

Posted on
Thu Jan 05, 2017 5:15 am
Gusten offline
Posts: 159
Joined: Dec 30, 2015
Location: Sweden, Gothenburg

Re: Tesla Model S & X Script for Indigo

Hi

Everytime a run th script i get an error Everything is working but i would like to know what is mean.

Script error tesla-get.py: "key name homelatitude not found in database"

Anyone know what this is ?

/Martin

Posted on
Thu Jan 05, 2017 5:36 am
Bollar offline
Posts: 517
Joined: Aug 11, 2013

Re: Tesla Model S & X Script for Indigo

Gusten wrote:
Hi

Everytime a run th script i get an error Everything is working but i would like to know what is mean.

Script error tesla-get.py: "key name homelatitude not found in database"

You need to create the homeLatitude and homeLongitude variables in Indigo so the car's distance from home can be calculated.

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Thu Jan 05, 2017 6:14 am
Gusten offline
Posts: 159
Joined: Dec 30, 2015
Location: Sweden, Gothenburg

Re: Tesla Model S & X Script for Indigo

Thanx

I got a new error
"global name "dist" is not defiend

But i found the error

This line
distFromHome = float(int(dist * 6371 * 10)) / 10 # Nautical Miles to Kilometers

Should be
distFromHome = float(int(c * 6371 * 10)) / 10 # Nautical Miles to Kilometers

Thanx

/Martin

Who is online

Users browsing this forum: No registered users and 0 guests