Skip to content

Instantly share code, notes, and snippets.

View abbe79's full-sized avatar
😎

Tobias Abstreiter abbe79

😎
  • B/S/H/
  • Bavaria, Germany
View GitHub Profile
@abbe79
abbe79 / CoronaAmpel.js
Last active January 4, 2021 22:05
corona incidence for Scriptable on iOS
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: traffic-light;
// share-sheet-inputs: file-url, url, plain-text;
async function getLocation(){
let param = args.widgetParameter
if (param != null && param.length > 0) {
const fixedCoordinates = args.widgetParameter.split(",").map(parseFloat)
return { latitude: fixedCoordinates[0], longitude: fixedCoordinates[1], source: "" }
} else {