ShareShortcuts

Drive Model 3

Unlocks and allows driving of Tesla Model 3

gwgans
„Drive Model 3“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit gwgans die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
70K
Gesichert
0
Aktionen
10
Kategorie
API
Version
1.0
Sprache
EN

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.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 18. Mär 2019

First release

Was er macht

10 Aktionen
  1. Run Shortcut
    Get My Access Token
  2. Text
  3. Run Shortcut
    Get Vehicle ID
  4. URL
    https://owner-api.teslamotors.com/api/1/vehicles/…/wake_up
  5. Get Contents of URL
  6. URL
    https://owner-api.teslamotors.com/api/1/vehicles/…/command/door_unlock
  7. Get Contents of URL
  8. Text
  9. URL
    https://owner-api.teslamotors.com/api/1/vehicles/…/command/remote_start_drive?password=…
  10. Get Contents of URL

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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}"
})
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von gwgans

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung