Skip to content

Instantly share code, notes, and snippets.

View martinbackes's full-sized avatar

Martin Backes martinbackes

  • Berlin, Germany
View GitHub Profile
@martinbackes
martinbackes / TelekomDataUsage.js
Created October 20, 2021 05:55 — forked from Sillium/TelekomDataUsage.js
Telekom Data Usage - iOS 14 Widget for Scriptable app
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: pink; icon-glyph: exchange-alt;
const DEBUG = false
const log = DEBUG ? console.log.bind(console) : function () { };
// configure the library
const libraryInfo = {
name: 'TelekomDataUsageLibrary',
version: '1.0.3',
const apiUrl = "https://pass.telekom.de/api/service/generic/v1/status"
let widget = await createWidget()
widget.backgroundColor = new Color("#777777")
if (!config.runsInWidget) {
await widget.presentSmall()
}
Script.setWidget(widget)
Script.complete()
@martinbackes
martinbackes / scriptable-calendar-widget.md
Created October 26, 2020 08:20 — forked from rudotriton/scriptable-calendar-widget.md
Customizable iOS Calendar widget in Scriptable
@martinbackes
martinbackes / mcfit-capacity-widget.js
Created October 24, 2020 09:32 — forked from masselmello/rsg_group_mcfit_high5_johnreed_capacity_widget.js
iOS widget powered by the Scriptable app that shows the current capacity of your McFit gym (RSG group)
/**
* Script for scriptable to get the current capacity of McFit Gyms
*/
let gymId = 1731068920
let param = args.widgetParameter
if (param != null && param.length > 0) {
gymId = param
}
const currentGymCapacity = await fetchGymCapacity(gymId)