Skip to content

Instantly share code, notes, and snippets.

View coolinx's full-sized avatar

Serge coolinx

View GitHub Profile
@coolinx
coolinx / hass.js
Last active June 28, 2023 12:40 — forked from m33x/hass.js
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {