Skip to content

Instantly share code, notes, and snippets.

View caspahouzer's full-sized avatar

Sebastian Klaus caspahouzer

View GitHub Profile
caspahouzer / incidence-vaccines-scriptable.js
Last active May 14, 2021 07:06 — forked from dwd0tcom/incidence-vaccines-scriptable.js
A scriptable widget to display and show the current incidence and vaccine status.
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-gray; icon-glyph: magic;
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
// Vaccine API by @_ThisIsBenny_
// Define URLs based on the webpage
const newCasesApiUrl = `*&outStatistics=%5B%7B%22statisticType%22%3A%22sum%22%2C%22onStatisticField%22%3A%22AnzahlFall%22%2C%22outStatisticFieldName%22%3A%22value%22%7D%5D&resultType=standard&cacheHint=true`;
const incidenceUrl = (location) =>