ShareShortcuts

Drive Model 3

Unlocks and allows driving of Tesla Model 3

gwgans
Fazer fork de “Drive Model 3”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que gwgans receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
70K
Salvo
0
Ações
10
Categoria
API
Versão
1.0
Idioma
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.

Novidades

Versão 1.0

First release

Histórico de versões
1.0 18 de mar de 2019

First release

O que ele faz

10 ações
  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

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#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}"
})
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de gwgans

Ver tudo

Você também pode gostar

Ver tudo
Publicidade