mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
Overview
A simple script-based plugin for setting the password.
Usage
- Head to Settings > UI password to adjust the default values.
Notes
- The plugin is executed on the
RUNtypebefore_config_saveso it's possible to update thepialert.conffile before the data is loaded into the app. - The executed command is stored in the
CMDsetting:/home/pi/pialert/back/pialert-cli set_password {password} - The
{password}parameter is replaced via the parameter and setting below:
...
"params" : [
{
"name" : "password",
"type" : "setting",
"value" : "SETPWD_password"
}
],
...
{
"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 <code>123456</code>. To change the password run <code>/home/pi/pialert/back/pialert-cli set_password {password}</code> in the container"
}
]
}