{ "code_name": "undiscoverables", "unique_prefix": "UNDIS", "enabled": true, "data_source": "python-script", "mapped_to_table": "DHCP_Leases", "localized": ["display_name", "description", "icon"], "display_name": [ { "language_code": "en_us", "string": "Un-Discoverable Devices" } ], "icon": [ { "language_code": "en_us", "string": "" } ], "description": [ { "language_code": "en_us", "string": "This plugin is to import undiscoverable devices from a file." } ], "params" : [ { "name" : "devices", "type" : "setting", "value" : "UNDIS_devices_to_import" }], "settings": [ { "function": "RUN", "type": "text.select", "default_value":"disabled", "options": ["disabled", "once", "always_after_scan"], "localized": ["name", "description"], "name" :[{ "language_code":"en_us", "string" : "When to run" }], "description": [{ "language_code":"en_us", "string" : "When enabled, ONCE is the preferred option. It runs at startup and after every save of the config here.
Changes will only show in the devices after the next scan!" }] }, { "function": "CMD", "type": "text", "default_value": "python3 /home/pi/pialert/front/plugins/undiscoverables/script.py devices={devices}", "options": [], "localized": ["name", "description"], "name": [ { "language_code": "en_us", "string": "Command" } ], "description": [ { "language_code": "en_us", "string": "Command to run. This can not be changed" } ] }, { "function": "RUN_TIMEOUT", "type": "integer", "default_value": 10, "options": [], "localized": ["name", "description"], "name": [ { "language_code": "en_us", "string": "Run timeout" } ], "description": [ { "language_code": "en_us", "string": "Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted." } ] }, { "function": "WATCH", "type": "lable", "default_value": [], "options": [], "localized": ["name", "description"], "name": [ { "language_code": "en_us", "string": "Watched" } ], "description": [ { "language_code": "en_us", "string": "Undiscoverable Devices can not change their status, no watch is enabled." } ] }, { "function": "REPORT_ON", "type": "lable", "default_value": [], "options": ["new", "watched-changed", "watched-not-changed"], "localized": ["name", "description"], "name": [ { "language_code": "en_us", "string": "Report on" } ], "description": [ { "language_code": "en_us", "string": "No notifications will be sent." } ] }, { "function": "devices_to_import", "type": "list", "default_value":["dummy_router"], "options": [], "localized": ["name", "description"], "name" : [{ "language_code":"en_us", "string" : "UnDiscoverable Devices" }], "description": [{ "language_code":"en_us", "string" : "Devices to be added to the devices list." }] } ], "database_column_definitions": [ { "column": "Watched_Value1", "mapped_to_column": "DHCP_Name", "css_classes": "col-sm-2", "show": true, "type": "label", "default_value":"", "options": [], "localized": ["name"], "name":[{ "language_code":"en_us", "string" : "Device Name" }] }, { "column": "Object_PrimaryID", "mapped_to_column": "DHCP_MAC", "css_classes": "col-sm-2", "show": true, "type": "devicemac", "default_value":"", "options": [], "localized": ["name"], "name":[{ "language_code":"en_us", "string" : "MAC address" }] }, { "column": "Object_SecondaryID", "mapped_to_column": "DHCP_IP", "css_classes": "col-sm-2", "show": true, "type": "deviceip", "default_value":"", "options": [], "localized": ["name"], "name":[{ "language_code":"en_us", "string" : "IP" }] } , { "column": "DateTimeCreated", "css_classes": "col-sm-2", "show": true, "type": "label", "default_value":"", "options": [], "localized": ["name"], "name":[{ "language_code":"en_us", "string" : "Created" }] }, { "column": "DateTimeChanged", "mapped_to_column": "DHCP_DateTime", "css_classes": "col-sm-2", "show": true, "type": "label", "default_value":"", "options": [], "localized": ["name"], "name":[{ "language_code":"en_us", "string" : "Changed" }] } ] }