Skip to content

Instantly share code, notes, and snippets.

View ParoTheParrot's full-sized avatar
🤠

Paro The Parrot ParoTheParrot

🤠
View GitHub Profile
@ParoTheParrot
ParoTheParrot / dm-toilet-paper-wheat-flour.js
Last active August 10, 2023 07:24 — forked from marco79cgn/dm-toilet-paper-wheat-flour.js
Scriptable iOS widget that shows the amount of both toilet paper and wheat flour which is available at your next dm drugstore #scriptable #corona
// Wheat flour icon made by Freepik from www.flaticon.com and modified by achisto
// Toilet paper icon made by boettges
let country = 'de' // replace with 'at' for shops in Austria
let storeId = 251
let param = args.widgetParameter
if (param != null && param.length > 0) {
storeId = param
}
@ParoTheParrot
ParoTheParrot / dawn2dusk.js
Last active October 27, 2020 15:02 — forked from HendrikRunte/dawn2dusk.js
Scriptable.app widget displaying the exact time of today's sunrise and sunset. Which comes in handy in the wintertime … #scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: sun-2;
///////////////////////////////////////////////////////////////////////
// dawn2dusk.js
// Take it and have fun.
// Hendrik Runte, Oct 24, 2020.
///////////////////////////////////////////////////////////////////////
// Extending the JavaScritp Date object.
@ParoTheParrot
ParoTheParrot / dm-toilet-paper.js
Last active August 10, 2023 07:24 — forked from marco79cgn/dm-toilet-paper.js
Scriptable iOS widget that shows the amount of toilet paper which is available at your next dm drugstore #scriptable #archiv #corona
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: magic;
let storeId = 2612
// HH Steinstraße
let country
let param = args.widgetParameter
if (param != null && param.length > 0) {
storeId = param
}
@ParoTheParrot
ParoTheParrot / incidence.js
Last active August 10, 2023 07:25 — forked from kevinkub/incidence.js
COVID-19 Inzidenz-Widget für iOS innerhalb Deutschlands 🇩🇪 #corona #scriptabley
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
const apiUrl = (location) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=GEN,cases7_per_100k&geometry=${location.longitude.toFixed(3)}%2C${location.latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json`
const apiUrlStates = 'https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/Coronaf%E4lle_in_den_Bundesl%E4ndern/FeatureServer/0/query?where=1%3D1&outFields=cases7_bl_per_100k&returnGeometry=false&outSR=4326&f=json'
const widget = await createWidget()
if (!config.runsInWidget) {
await widget.presentSmall()
}
Script.setWidget(widget)
Script.complete()