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 {