Uses two other shortcuts and simply reports on whether or not Tesla battery pack heating is on or off.
Requires Get My Access Token and Get Vehicle ID.
Nouveautés
Version 1.0
First release
Ce qu’il fait
6 actions-
Run ShortcutGet My Access Token
-
Text
-
Run ShortcutGet Vehicle ID
-
URLhttps://owner-api.teslamotors.com//api/1/vehicles/…/command/auto_conditioning_start
-
Get Contents of URL
-
Get Dictionary Value
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/web'
#define color lightblue
#define glyph thermometer
const access_token = runSelf()
const vehicle_id = runSelf()
url("https://owner-api.teslamotors.com//api/1/vehicles/{vehicle_id}/command/auto_conditioning_start")
jsonRequest("", "POST", {}, {
"Authorization": "Bearer {access_token}"
})
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de gwgans
Ça pourrait aussi te plaire
Publicité