-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
latitude and longitude are not in drive_state #147
Comments
The is already a patch for the Elixir library: teslamate-org/teslamate@5058a6f (so in fact you need to add "?endpoints=location_data" to the url) |
While the quick fix of 38ff7da probably works, it will show the location icon in the car whenever TeslaPy requests VEHICLE_DATA. IMHO it would be better to create a separate endpoint to specifically retrieve location data. |
Closing for additional testing, will resubmit and update comment. |
I ran
python3 menu.py
After logging in, this error is printed at the console:
File "/Users/Hans/Downloads/TeslaPy-master/menu.py", line 37, in show_vehicle_data coords = '%s, %s' % (dr['latitude'], dr['longitude']) KeyError: 'latitude'
in the response I see 'api_version': 67
This is all that is returned in drive_state:
The text was updated successfully, but these errors were encountered: