Newer
Older
bathroom-plugin / mattermost / plugin.json
{
    "id": "com.mattermost.bathroom",
    "name": "Bathroom Monitor",
    "server": {
        "executable": "bathroom-linux-amd64"
    },
    "webapp": {
	"bundle_path": "main.js"
    },
    "settings_schema": {
	"settings": [
		{"key":"NumDoors", "display_name":"Number of Door Sensors", "type":"text", "default":"1", "help_text":"How many Pis"},
		{"key":"KeyPath", "display_name":"Public key path", "type":"text", "default":"./", "help_text":"Path for public keys to server Pi requests"},
		{"key":"AdminUsers", "display_name":"Plugin admin users", "type":"text", "default":"", "help_text":"Space- or comma-separated list of users to notify with plugin debug message"},
		{"key":"PingInterval", "display_name":"Ping interval", "type":"text", "default":"", "help_text":"Send a ping every X seconds to keep websockets alive through nginx (leave blank for none)"},
		{"key":"DoorNames", "display_name":"Door names", "type":"text", "default":"", "help_text":"|-separated list of names of the office doors"},
		{"key":"InfoIcons", "display_name":"Info icon url", "type":"text", "default":"", "help_text":"(Relative) URL of the icon to display at the left before all the door icons, 1 per door (or specify 1 for all)"},
		{"key":"UnknownIcons", "display_name":"Unknown icon url", "type":"text", "default":"", "help_text":"(Relative) URL of the icon to display for doors without their status set yet, 1 per door (or specify 1 for all)"},
		{"key":"OpenIcons", "display_name":"Open icon url", "type":"text", "default":"", "help_text":"(Relative) URL of the icon to display for doors that are open, 1 per door (or specify 1 for all)"},
		{"key":"ClosedIcons", "display_name":"Closed icon url", "type":"text", "default":"", "help_text":"(Relative) URL of the icon to display for doors that are closed, 1 per door (or specify 1 for all)"},
		{"key":"DoorOrder", "display_name":"Door order", "type":"text", "default":"", "help_text":"Order of the door IDs for display in the widget (comma separated)"},
		{"key":"DoorPasswords", "display_name":"Door passwords", "type":"text", "default":"", "help_text":"|-separated list of passwords used to access status update calls (pubkey alternative)"}
	]
    }
}