Statusübersicht eines Tesla Autos
Diese Visualisierung bezieht und visualisiert Informationen direkt von einem Tesla. Bitte beachten Sie, dass Sie einen Tesla mit den entsprechenden Zugangsdaten benötigen, um diese Vorlage verwenden zu können.

Diese Visualisierung bezieht und visualisiert Informationen direkt von einem Tesla. Bitte beachten Sie, dass Sie einen Tesla mit den entsprechenden Zugangsdaten benötigen, um diese Vorlage verwenden zu können.
Please note that this approach uses the same api as the tesla mobile app. This is not an official api.
In order to get this board running you need to request an api key via the Tesla api. Just send a POST request with the following json body to https://owner-api.teslamotors.com/oauth/token
:
{ "grant_type": "password", "client_id": "81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384", "client_secret": "c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3", "email": "<your email address for tesla.com>", "password": "<your password for tesla.com>"}
The response will look like this:
{ "access_token": "<your access token>", "token_type": "bearer", "expires_in": 3888000, "refresh_token": "<your refresh token>", "created_at": 1564730977}
Since the retrieved access token is only valid for 45 days, you can use the request_token to request a new token. You can do this by sending a POST request with the following json body to https://owner-api.teslamotors.com/oauth/token
:
The request will look like this:
{ "grant_type": "refresh_token", "client_id": "81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384", "client_secret": "c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3", "refresh_token": "<your refresh_token>"}
Now you need to find out about the id of your Tesla (you have to use id
instead of vehicleId
) by requesting a list of vehicles from https://owner-api.teslamotors.com/api/1/vehicles
. To access this endpoint you are required to add the header Authorization: Bearer <your acces_token here>
to your request. The response will look like this:
{ "response": [ { "id": <your id>, "vehicle_id": <your vehicle_id>, "vin": "<your vin>", "display_name": "Friedhelm", "option_codes": "AD15,MDL3,PBSB,RENA,...", "color": null, "tokens": ["<your tokens>"], "state": "offline", "in_service": false, "id_s": "<your id>", "calendar_enabled": true, "api_version": 6, "backseat_token": null, "backseat_token_updated_at": null } ], "count": 1}
Now you can jump into the Peakboard designer. There you have to set the two variables token
and vehicleId
to the token and id you received in the previous calls (use your id not vehicle_id for vehicleId).
Sometimes it may take up to 20 seconds to finish this request. The reason for that is that the Tesla falls asleep when inactive for a few minutes and needs some time to wake up again.
Unsere zahlreichen Videos für Einsteiger und Fortgeschrittene erklären dir genau, wie du dein Dashboard gestaltest.
Hier gibt es zahlreiche Artikel, die dir den Umgang mit dem Peakboard Designer vereinfachen.
Auf unserer Website findest du alle wichtigen Infos zu Peakboard sowie verschiedene Anwendungsfälle und Success Stories.