Skip to content

Instantly share code, notes, and snippets.

View thorstenleidl's full-sized avatar

Thorsten Leidl thorstenleidl

  • Munich, Bavaria, Germany
View GitHub Profile
@thorstenleidl
thorstenleidl / vaccination-stats.js
Last active June 17, 2022 05:28 — forked from marco79cgn/vaccination-stats.js
A Scriptable widget that shows the amount of people who have received the corona vaccination in Germany
const version = 'v1.5'
const cacheMinutes = 60 // 60 min
const today = new Date();
let result
let widget = new ListWidget()
widget.setPadding(10, 15, 10, 10)
await getNumbers()
@marco79cgn
marco79cgn / vaccination-stats.js
Last active January 11, 2023 21:47
A Scriptable widget that shows the amount of people who have received the corona vaccination in Germany
// Version 1.3.0
// 27.11.2021
//
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: notes-medical;
// Mit Caching und Fallback
const cacheMinutes = 60; // 60 min
const today = new Date();
const neededTotalVaccinations = 83200000;