Skip to content

Instantly share code, notes, and snippets.

@29SimonB
29SimonB / Corona Upadate Germany Widget.js
Last active April 22, 2021 17:34
iOS Widget, das ein tägliches Corona Update innerhalb Deutschlands anzeigt (für die scriptable.app)
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
// Location sources
async function getLocation() {
try {
if (args.widgetParameter) {
const fixedCoordinates = args.widgetParameter.split(",").map(parseFloat);
return { latitude: fixedCoordinates[0], longitude: fixedCoordinates[1] };
@n0rdlicht
n0rdlicht / ios-scriptable-widget-vaccination-rate-germany.js
Last active January 20, 2021 20:48
Scriptable Widget: Current Vaccination Numbers and Rates in Germany
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: green; icon-glyph: magic;
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
// Vaccine API by @twesterhuys / https://github.com/n0rdlicht
// Location detection by @mkreuz
const options = [
"Germany",