Fix ENABLE_PLUGINS bug discovered in #203
This commit is contained in:
@@ -3299,6 +3299,7 @@ def update_api(isNotification = False, updateOnlyDataSources = []):
|
|||||||
write_file(folder + 'notification_json_final.json' , json.dumps(json_final))
|
write_file(folder + 'notification_json_final.json' , json.dumps(json_final))
|
||||||
|
|
||||||
# Save plugins
|
# Save plugins
|
||||||
|
if ENABLE_PLUGINS:
|
||||||
write_file(folder + 'plugins.json' , json.dumps({"data" : plugins}))
|
write_file(folder + 'plugins.json' , json.dumps({"data" : plugins}))
|
||||||
|
|
||||||
# prepare database tables we want to expose
|
# prepare database tables we want to expose
|
||||||
|
|||||||
@@ -131,8 +131,6 @@ function localize (obj, key) {
|
|||||||
{
|
{
|
||||||
code = obj[key][i]["language_code"]
|
code = obj[key][i]["language_code"]
|
||||||
|
|
||||||
// console.log(code)
|
|
||||||
|
|
||||||
if( code == 'en_us')
|
if( code == 'en_us')
|
||||||
{
|
{
|
||||||
en_us = obj[key][i]["string"]
|
en_us = obj[key][i]["string"]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ A plugin allowing for importing devices from a UniFi controller.
|
|||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
Spedify the following settings in the Settings section of PiAlert:
|
Specify the following settings in the Settings section of PiAlert:
|
||||||
|
|
||||||
- `UNFIMP_username` - Username used to login into the UNIFI controller.
|
- `UNFIMP_username` - Username used to login into the UNIFI controller.
|
||||||
- `UNFIMP_password` - Password used to login into the UNIFI controller.
|
- `UNFIMP_password` - Password used to login into the UNIFI controller.
|
||||||
@@ -16,3 +16,4 @@ Spedify the following settings in the Settings section of PiAlert:
|
|||||||
### Notes
|
### Notes
|
||||||
|
|
||||||
- Currently only used to import devices, not their status, type or network map.
|
- Currently only used to import devices, not their status, type or network map.
|
||||||
|
- It is recommend to create a read-only user in your UniFi controller
|
||||||
Reference in New Issue
Block a user