Skip to content

Instantly share code, notes, and snippets.

@marco79cgn
marco79cgn / apple-product-availability.js
Last active September 28, 2025 13:14
Custom iOS widget that shows both the store and online availability of a given product (for Scriptable.app)
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: teal; icon-glyph: apple-alt;
// default zipOrStore and partNo - will be overwritten by your widget parameters
let zipOrStore = '50670'
let partNo = "MFHP4ZM/A"
// insert your ntfy url
const notifyUrl = "https://ntfy.sh/******"
// force push notification - set to true in order to test that your setup is working correctly