diff --git a/front/plugins/arp_scan/config.json b/front/plugins/arp_scan/config.json index c609476b..d8c3bfcb 100755 --- a/front/plugins/arp_scan/config.json +++ b/front/plugins/arp_scan/config.json @@ -89,7 +89,7 @@ }, { "function": "WATCH", - "type": "lable", + "type": "readonly", "default_value": [], "options": [], "localized": ["name", "description"], @@ -108,7 +108,7 @@ }, { "function": "REPORT_ON", - "type": "lable", + "type": "readonly", "default_value": [], "options": ["new", "watched-changed", "watched-not-changed"], "localized": ["name", "description"], diff --git a/front/plugins/set_password/README.md b/front/plugins/set_password/README.md new file mode 100755 index 00000000..5bfa4e6e --- /dev/null +++ b/front/plugins/set_password/README.md @@ -0,0 +1,11 @@ +## Overview + +A simple template-based plugin for setting the password. + +### Usage + +- Head to **Settings** > **UI password** to adjust the default values. + +### Notes + +- N/A \ No newline at end of file diff --git a/front/plugins/set_password/config.json b/front/plugins/set_password/config.json new file mode 100755 index 00000000..655d2c93 --- /dev/null +++ b/front/plugins/set_password/config.json @@ -0,0 +1,87 @@ +{ + "code_name": "set_webui_password", + "template_type": "database-entry", + "unique_prefix": "SETPWD", + "enabled": true, + "data_source": "script", + "localized": ["display_name", "description", "icon"], + "display_name": [{ + "language_code": "en_us", + "string": "UI password" + }], + "description": [{ + "language_code": "en_us", + "string": "A simple plugin to set the web ui password on app start." + }], + "icon": [ + { + "language_code": "en_us", + "string": "" + } + ], + "params" : [ + { + "name" : "password", + "type" : "setting", + "value" : "SETPWD_password" + } + ], + "settings":[ + { + "function": "RUN", + "type": "text.select", + "default_value":"disabled", + "options": ["disabled", "once"], + "localized": ["name", "description"], + "name" :[{ + "language_code":"en_us", + "string" : "When to run" + }], + "description": [{ + "language_code":"en_us", + "string" : "Set to once and specify password to reset your pasword in SETPWD_password." + }] + }, + { + "function": "CMD", + "type": "text", + "default_value":"/home/pi/pialert/back/pialert-cli set_password {password}", + "options": [], + "localized": ["name", "description"], + "name" : [{ + "language_code":"en_us", + "string" : "Command" + }], + "description": [{ + "language_code":"en_us", + "string" : "Command to run" + }] + }, + { + "function": "password", + "type": "password", + "maxLength": 50, + "default_value": "123456", + "options": [], + "localized": ["name", "description"], + "name": [ + { + "language_code": "en_us", + "string": "Password" + } + ], + "description": [ + { + "language_code": "en_us", + "string": "The default password is 123456. To change the password run /home/pi/pialert/back/pialert-cli set_password {password} in the container" + } + ] + } + + + ] + + } + + + \ No newline at end of file diff --git a/front/plugins/undiscoverables/config.json b/front/plugins/undiscoverables/config.json index 11bd0a9e..1cb29542 100755 --- a/front/plugins/undiscoverables/config.json +++ b/front/plugins/undiscoverables/config.json @@ -89,7 +89,7 @@ }, { "function": "WATCH", - "type": "lable", + "type": "readonly", "default_value": [], "options": [], "localized": ["name", "description"], @@ -108,7 +108,7 @@ }, { "function": "REPORT_ON", - "type": "lable", + "type": "readonly", "default_value": [], "options": ["new", "watched-changed", "watched-not-changed"], "localized": ["name", "description"],