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.
Novedades
Versión 1.0
First release
Qué hace
6 acciones-
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
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#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}"
})
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de gwgans
También te puede gustar
Publicidad