hans
P631
V4.4 Firmware does not appear to have added any new fields to the data returned by any of the REST API calls. Streaming API looks the same too but its hard to tell if there are new fields that are available but unknown.
You can install our site as a web app on your iOS device by utilizing the Add to Home Screen feature in Safari. Please see this thread for more details on this.
Note: This feature may not be available in some browsers.
Banahogg - thats awesome! If your script gets more advanced I'm going to have to get a kindle just to do this!See this thread for my latest project which lightly uses the REST API for the bottom-right part of the display: EInk display for power price and car status
Are you planning on getting the vehicle and just want to get a head start on the software to burn some time while you wait? Or did you have an interest in writing some apps for one of phone/tablet/laptop/desktop stores? Or something else?Hi guys ,
I'm a bit late to the party.
I was wondering - with all the hard work being done here. Would it be possible for devs that want to dive in but DO NOT own a Tesla or have access to one, to create some sort of sandbox environment.
Obviously I'm not talking just creating user credentials on teslamotors.com/mytesla - cause anyone can do that - but to be able to tap into the API we would need to get a valid response returning a (dummy?) vehicle id and all the other response data that the api would return.
Thanks.
Are you planning on getting the vehicle and just want to get a head start on the software to burn some time while you wait? Or did you have an interest in writing some apps for one of phone/tablet/laptop/desktop stores? Or something else?
I wrote a quick puller last night in C#. It took me a few hours (TV is distracting ) to get it reliably pulling (with the re-auth, etc.) and has been running for about 22 hours steady now. It's pretty straightforward.
Speaking of the streaming API. I discovered two new values that I was unaware of ("range" and "est_range"). One was from Cliff Hannel's teslatrackerapp and the other was an educated guess.
The full list that I know of is:
speed, odometer, soc, elevation, heading, est_heading, est_lat, est_lng, power, shift_state, range, est_range
I found this helpful:Has anyone created documentation for the streaming API? It doesn't look like it's in the docs linked to in the first post.
For the week's worth of data that I've logged so far, my max "range" was 249.range, est_range
Has anybody found a way to query overall or component version numbers? I'd like to be able to have the version number in my logs automatically so that I can track trend changes across version numbers.
Thanks for pointing out what I missed.The 1.31.11-style version is in vehicle_state. Note there's a typo in the original apiary docs ("verson")
Thanks for pointing out what I missed.
[...]
Interesting: That might also explain why my About and other renderings of my car don't show my spoiler properly. I'll have to add that to my servicing list.
Thanks for pointing out what I missed.
From https://portal.vn.teslamotors.com/vehicles/<id>/command/vehicle_state ...
- df=false
- dr=false
- pf=false
- pr=false
- ft=false
- rt=false
- car_version=1.31.11
- locked=true
- sun_roof_installed=true
- sun_roof_state=unknown
- sun_roof_percent_open=0
- dark_rims=false
- wheel_type=Silver21
- has_spoiler=false
- roof_color=None
- perf_config=Sport
Interesting: That might also explain why my About and other renderings of my car don't show my spoiler properly. I'll have to add that to my servicing list.
Did the format or parameters of any of the queries change?Note that 4.5 changes much of the API used. Door open/closed now is an integer instead of boolean. Power liftgate open is '32' instead of '1' or 'true', which confuses the hell out of the app. Should be fixed in the next release of the app, I'm told.
Also, the status_charge fields have also changed, with plenty of additions. I dropped a few notes in the apiary site.
Did the format or parameters of any of the queries change?
onyx:102:~>tesla charge_state
{
"battery_current": -0.6,
"battery_heater_on": false,
"battery_level": 90,
"battery_range": 234.1,
"charge_enable_request": true,
"charge_limit_soc": 90,
"charge_limit_soc_max": 100,
"charge_limit_soc_min": 50,
"charge_limit_soc_std": 90,
"charge_port_door_open": true,
"charge_rate": -1.0,
"charge_starting_range": null,
"charge_starting_soc": null,
"charge_to_max_range": false,
"charger_actual_current": 0,
"charger_pilot_current": 60,
"charger_power": 0,
"charger_voltage": 0,
"charging_state": "Complete",
"est_battery_range": 186.16,
"fast_charger_present": false,
"ideal_battery_range": 269.43,
"max_range_charge_counter": 0,
"not_enough_power_to_heat": false,
"scheduled_charging_pending": false,
"scheduled_charging_start_time": null,
"time_to_full_charge": 0.0,
"user_charge_enable_request": null
}
Did the format or parameters of any of the queries change?
... I meant the query URL. For example, adding est_range changed the URL for the streaming query.Did the format or parameters of any of the queries change?
By...
... I meant the query URL. For example, adding est_range changed the URL for the streaming query.