Skip to content

Instantly share code, notes, and snippets.


Matan Mashraki planecore

View GitHub Profile
planecore / Coronavirus.js
Last active Sep 13, 2022
Coronavirus Scriptable Widget
View Coronavirus.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: user-md;
// change "country" to a value from
const country = "Israel"
const url = `${country}`
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {
from decouple import config
import teslapy
with teslapy.Tesla(config('EMAIL')) as tesla:
if not tesla.authorized:
tessie = tesla.vehicle_list()[0]