Skip to content

Instantly share code, notes, and snippets.

Avatar
👍
I love it when a plan comes together

Sebastian K skrollme

👍
I love it when a plan comes together
View GitHub Profile
@skrollme
skrollme / covid-19-incidence-osna.js
Last active Dec 7, 2020
Scriptable iOS14 Widget for Covid19 Incidence (Osnabrueck City & District), Datasource: corona-os.de
View covid-19-incidence-osna.js
// Adapted from: https://gist.github.com/rphl/0491c5f9cb345bf831248732374c4ef5/
const API_URL = 'https://www.apps.nlga.niedersachsen.de/corona/download.php?csv'
const LIMIT_RED = 50
const LIMIT_ORANGE = 35
const LIMIT_RED_COLOR = new Color('FF1A2A')
const LIMIT_ORANGE_COLOR = new Color('FFD800')
const LIMIT_GREEN_COLOR = new Color('00B32C')
const widget = await createWidget()