Skip to content

Instantly share code, notes, and snippets.

View matkoenig's full-sized avatar

Matthias König matkoenig

View GitHub Profile
@matkoenig
matkoenig / running.js
Last active August 7, 2022 03:05
Running Scriptable
// Running 1.0 | Matthias Konig | 02.11.2020
/*------------------------------------------------------------------------------
Hauptprogramm
------------------------------------------------------------------------------*/
// Konstanten
const maxYearDist = 1500;
const maxMonthDist = 200;
const color1 = Color.orange();
// Telekom Datenvolumen 1.1 | Matthias Konig | 27.10.2020
/*------------------------------------------------------------------------------
Main
------------------------------------------------------------------------------*/
var url = "https://pass.telekom.de/api/service/generic/v1/status";
var widget = await buildWidget();
widget.backgroundColor = new Color("#E20074");
if (!config.runsInWidget) widget.presentSmall();
Script.setWidget(widget);
@matkoenig
matkoenig / tatort.js
Last active July 13, 2022 23:49
Scriptable iOS widget that shows title, broadcast time and investigation team of next new Tatort episode
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: magic;
// Tatort Erstausstrahlung 1.3 | Matthias Konig | 11.06.2021
/*----------------------------------------------------------------------------------------------------------------------
Main
----------------------------------------------------------------------------------------------------------------------*/
var url = "https://www.daserste.de/unterhaltung/krimi/tatort/tatort-filter-naechste-erstausstrahlung-102.html"
var widget = await buildWidget()