This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |