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.
I was expecting that max_range_counter to be related to the 'you've charged in max range mode 3 times in a row' and it starts warning you to switch to standard? Not the count of lifetime max range charges
I was expecting that max_range_counter to be related to the 'you've charged in max range mode 3 times in a row' and it starts warning you to switch to standard? Not the count of lifetime max range charges
This is great stuff. But for some reason the token field is now coming up empty for me. I used to get it?
The only way I can get a token is to first login using my Android phone and then call the API from my app. I wonder if there is a step I am missing to trigger to creation of the token?
I also get an HTTP timeout if I don't drive the car for a few minutes. I tried setting --keepalive-time on CURL but my stupid windows OS doesn't support it. Will try again with Linux or MacOS.
I'm sending in the token, but it's failing with an "HTTP/1.1 401 Unauthorized"
The only way I can get a token is to first login using my Android phone and then call the API from my app. I wonder if there is a step I am missing to trigger to creation of the token?
I also get an HTTP timeout if I don't drive the car for a few minutes. I tried setting --keepalive-time on CURL but my stupid windows OS doesn't support it. Will try again with Linux or MacOS.
No idea what "power" is or whether it goes to 11 ;-)
My goal is to finish a node.js app that republishes the live stream of telemetry via PubNub or a websocket server of my own.
Are you sending in the first (of two) tokens that you get as a response from portal.vn.teslamotors.com/vehicles (i.e. not the tokens set in the cookies)
... "tokens":["abc123xyz456","098qwe765rty"],"state":"online"}
Yep, I've tired both in desperation. I've observed that the second token is the previous token, so they roll to the right.
Are you using the correct vehicle id? For the streaming API it is the "vehicle_id" field in the vehicle's JSON description not the "id" field. The ids are not the same for the REST and streaming APIs. For the streaming API mine is a 10-digit number, compared to a 3-digit number ror the rest API.
Try invoking GET on /vehicles/{id}/command/wake_up via the REST api, seems to fix the missing tokens issue.
Forgive me if wrong terminology, or if a dumb question, but is there API access to the media player in the car? can it switch inputs, set channels or sources, or select songs to play? if so, there could be some cool things done where the car starts my favorite podcasts or streams at certain times of the day?
est_heading is in degrees (compass direction) so their must be a magnetometer in the car somewhere. Perhaps the module is installed backwards or something because I appear to get the direction of the ass end of the car (rather than the frunk)
Power is clearly in kilowatts and a negative number indicates regen (also in kilowatts)
A negative number also can indicate charging.