Skip to content

Instantly share code, notes, and snippets.

View schaechinger's full-sized avatar
🥃
Crafting software

Manuel Schächinger schaechinger

🥃
Crafting software
View GitHub Profile
@schaechinger
schaechinger / telekom.js
Last active October 21, 2020 21:00 — forked from Sillium/telekom.js
const apiUrl = "https://pass.telekom.de/api/service/generic/v1/status";
let widget = await createWidget();
const gradient = new LinearGradient();
gradient.locations = [0, 1];
gradient.colors = [new Color("#d10063"), new Color("#e20074")];
widget.backgroundGradient = gradient;
if (!config.runsInWidget) {
@schaechinger
schaechinger / incidence.js
Last active December 14, 2020 13:30 — forked from kevinkub/incidence.js
COVID-19 Inzidenz-Widget für iOS innerhalb Deutschlands 🇩🇪
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: cyan; icon-glyph: magic;
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
const fields = ['GEN', 'cases7_per_100k', 'county', 'BEZ'];
const apiUrl = (location) => {
return `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=${fields.join(',')}&geometry=${location.longitude.toFixed(
3
)}%2C${location.latitude.toFixed(