Scan med din iPhone for at installere
Unlocks and allows driving of Tesla Model 3.
Requires two other shortcuts, Get My Access Token and Get Vehicle ID. See the Tesla Triggers Collection.
Why? Because the Tesla triggers my phone to start playing podcasts even when that is not the selected source or just when I walk by the car so I tend to leave phone Bluetooth off and so do not have a phone key. This shortcut requires me to type in my Tesla account password in addition to obtaining the access token given the embedded Tesla account credentials. Warning: this is not a secure method.
Nyheder
Version 1.0
First release
Hvad den gør
10 handlinger-
Run ShortcutGet My Access Token
-
Text
-
Run ShortcutGet Vehicle ID
-
URLhttps://owner-api.teslamotors.com/api/1/vehicles/…/wake_up
-
Get Contents of URL
-
URLhttps://owner-api.teslamotors.com/api/1/vehicles/…/command/door_unlock
-
Get Contents of URL
-
Text
-
URLhttps://owner-api.teslamotors.com/api/1/vehicles/…/command/remote_start_drive?password=…
-
Get Contents of URL
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/web'
#define color darkblue
#define glyph car
const access_token = runSelf()
const vehicle_id = runSelf()
url("https://owner-api.teslamotors.com/api/1/vehicles/{vehicle_id}/wake_up")
fileRequest("", "POST", {
"Authenticate": "Bearer {access_token} "
})
url("https://owner-api.teslamotors.com/api/1/vehicles/{vehicle_id}/command/door_unlock")
fileRequest("", "POST", {
"Authenticate": "Bearer {access_token}"
})
const password = "nil"
url("https://owner-api.teslamotors.com/api/1/vehicles/{vehicle_id}/command/remote_start_drive?password={password}")
fileRequest("", "POST", {
"Authenticate": "Bearer {access_token}"
})
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra gwgans
Du vil måske også kunne lide
Annonce