Skip to content

Instantly share code, notes, and snippets.

@martinharder
martinharder / icu.js
Last active October 10, 2022 12:52
COVID-19 Intensivbettenbelegung. Ein Widget für Scriptable
const newCasesApiUrl = `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/DIVI_Intensivregister_Landkreise/FeatureServer/0/query?f=json&where=1%3D1&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=*&orderByFields=Anteil_betten_frei%20desc&resultOffset=0&resultRecordCount=4000&resultType=standard&cacheHint=true`;
/* Bundesland-ID:
Baden-Württemberg: 8
Bayern: 9
Berlin: 11
Brandenburg: 12
Bremen: 4
Hamburg: 2
Hessen: 6
@malesfth
malesfth / widget_grafana.js
Created November 1, 2020 15:57
iOS Scriptable Widget for Grafana
// Parameters:
// {"url":"http://grafana","bearer":"123abc"}
// Optional key in parameters: "theme": system|light|dark|grafana
let grafanaURL = "" //set the URL here for debug
let grafanaBearer = "" // set the API-key here for debug
let wTheme = "system" // set the theme for debug
if (config.runsInWidget) {
const widgetParams = (args.widgetParameter != null ? JSON.parse(args.widgetParameter) : null)
@cheanrod
cheanrod / Luftdaten.js
Created November 1, 2020 09:26
Scriptable widget for Luftdaten.info
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: cyan; icon-glyph: database;
const warningColor = new Color("#E50000")
const legendFont = 12
const valueFont = 24
const timeFont = 8
let sensor = 1721
@liopoos
liopoos / AppleStoreCode.js
Last active December 29, 2020 08:42
Apple Store Code By Scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: apple-alt;
let stores = await getStoreList()
let table = new UITable()
for(let i in stores) {
let row = new UITableRow()
let store = stores[i]
@malesfth
malesfth / widget_pi-hole.js
Last active June 9, 2025 16:24
iOS Scriptable Widget for Pi-hole
// Parameters:
// {"url":"https://pihole","token": "x"}
// Optional key in parameters: "theme": system|light|dark
let piholeURL = "" // set the URL here for debug
let apiToken = "" // set the api token here for debug
let wTheme = "" // set the theme for debug
if (config.runsInWidget) {
const widgetParams = (args.widgetParameter != null ? JSON.parse(args.widgetParameter) : null)
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: yellow; icon-glyph: magic;
//
// This script was inspired by the famous telekom api script
// and just adjusted to pare the json output from a fronius inverter
//
const apiUrl = "http://xxx.xxx.xxx.xxx/solar_api/v1/GetPowerFlowRealtimeData.fcgi"
@moxmlb
moxmlb / itunes_movie_price.js
Last active March 29, 2022 10:27
Scriptable iOS widget that shows the current price of your favorite movie on iTunes Store
let movieId, country, quality
if (country == null && movieId == null && quality == null) {
country = 'de'
movieId = 991367195 //example id for Minions movie
quality = 'hd'
}
// api link
let link = 'https://itunes.apple.com/lookup?'
@marco79cgn
marco79cgn / dm-toilet-paper-wheat-flour.js
Last active March 7, 2025 12:33
iOS Widget, das die Anzahl an Klopapier und Mehl Packungen in deiner nächsten dm Drogerie anzeigt (für die scriptable.app)
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: green; icon-glyph: magic;
// dm Klopapier & Mehl Widget
//
// Copyright (C) 2020 by marco79 <[email protected]>
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
@HendrikRunte
HendrikRunte / dawn2dusk.js
Last active September 9, 2024 18:10
Scriptable.app widget displaying the exact time of today's sunrise and sunset. Which comes in handy in the wintertime …
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: sun;
///////////////////////////////////////////////////////////////////////
// dawn2dusk.js
// Origin:
// https://gist.github.com/HendrikRunte/4b5d03cb26e31508bc96553ad3c10f47
// Take it and have fun.
// Hendrik Runte, Nov 12, 2020, 17:33.
@Baumchen
Baumchen / incidence_at.js
Last active November 11, 2022 16:18
COVID-19 Inzidenz-Widget für iOS innerhalb Österreichs 🇦🇹
// Lizenz: AGES Dashboard COVID19 AT
// 3-stellige GKZ verwenden (zweite Spalte in https://covid19-dashboard.ages.at/data/CovidFaelle_GKZ.csv).
// Widget Parameter: "204,KFL;312;706" für Klagenfurt Land (angezeigt als KFL), Korneuburg und Landeck
//
// Basiert auf der deutschen Variante von
// - kevinkub https://gist.github.com/kevinkub/46caebfebc7e26be63403a7f0587f664
// - Baumchen https://gist.github.com/Baumchen/6d91df0a4c76c45b15576db0632e4329
//
// Angaben ohne Gewähr.