Skip to content

Instantly share code, notes, and snippets.

@darthsoup
darthsoup / telekom.js
Last active October 24, 2020 23:01 — forked from Sillium/telekom.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: brown; icon-glyph: magic;
const getUsageColor = (usage) => {
usage = parseInt(usage)
if (usage >= 90) {
return Color.red();
} else if (usage >= 75) {
return Color.orange();
} else {
@darthsoup
darthsoup / edg.js
Last active October 28, 2020 22:02
Scriptable EDG Dortmund
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: brown; icon-glyph: magic;
const API_URL = 'https://www.edg.de/JsonHandler.ashx?cmd=findtrash&feiertag=0'
const TITLE_ICON = '🗑️'
const TITLE = 'EDG'
const ENTRIES = 3
const getTrashTypeColor = type => {
if (type === 'Wertstoffe') {