Skip to content

Instantly share code, notes, and snippets.

@ThisIsBenny
ThisIsBenny / apple-order.js
Last active January 1, 2021 14:16
Appe Order Widget Script with log file
// Version 1.1.5 - BETA
const cacheMinutes = 60 * 2
const today = new Date()
let width;
const h = 5
const debug = false
if (config.widgetFamily === 'small') {
width = 200
@ThisIsBenny
ThisIsBenny / PushCut-Example.js
Created November 16, 2020 06:48
PushCut Notification
const req = new Request('https://api.pushcut.io/l...-s/notifications/Example')
await req.loadJSON()
// Oder mit dynamischen Title und Text. Und einer Url welche sich öffnet wenn man die Push Nachricht anklickt.
const req2 = new Request('https://api.pushcut.io/l...-s/notifications/Example')
req2.method = 'POST'
req2.headers = {