Skip to content

Instantly share code, notes, and snippets.

@malesfth
malesfth / widget_portainer.js
Last active October 31, 2023 15:20
iOS Scriptable Widget for Portainer (Docker)
// Parameters:
// {"url":"https://portainer:9000","user":"username","pass":"secret"}
// Optional key in parameters: "endpoint": 1|2|...
// Optional key in parameters: "theme": system|light|dark|docker
// Optional key in parameters: "name": "Portainer|Docker"
let portainerUser = "" // set the username here for debug
let portainerPass = "" // set the password here for debug
let portainerURL = "" //set the URL here for debug
let portainerEndpoint = "1" //set the endpoint id for debug