Page 7 of 7

Re: Tesla Model S & X Script for Indigo

PostPosted: Thu Jan 05, 2017 5:15 am
by Gusten
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

Re: Tesla Model S & X Script for Indigo

PostPosted: Thu Jan 05, 2017 5:36 am
by Bollar
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.

Re: Tesla Model S & X Script for Indigo

PostPosted: Thu Jan 05, 2017 6:14 am
by Gusten
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