Skip to content

Commit

Permalink
Loading plugins v 0.1 🔌
Browse files Browse the repository at this point in the history
  • Loading branch information
jokob-sk committed May 11, 2024
1 parent 36af285 commit 035ec80
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ body:
options:
- label: I have searched the existing open and closed issues
required: true
- type: checkboxes
attributes:
label: Am I willing to test this? 🧪
description: I rely on the community to test unreleased features. If you are requesting a feature, please be willing to test it within 48h of test request. Otherwise, the feature might be pulled from the code base.
options:
- label: I will do my best to test this feature on the `netlertx-dev` image when requested within 48h and report bugs to help deliver a great user experience for everyone and not to break existing installations.
required: true
- type: checkboxes
attributes:
label: Can I help implement this? 👩‍💻👨‍💻
description: The maintainer will provide guidance and help. The implementer will read the PR guidelines https://github.com/jokob-sk/NetAlertX/tree/main/docs#-pull-requests-prs
options:
- label: Yes
- label: No
required: true
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe
Expand Down
Empty file modified front/php/templates/language/fr_fr.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/pl_pl.json
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion front/plugins/_publisher_mqtt/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@
"description": [
{
"language_code": "en_us",
"string" : "The type of the sensor that should be generated for the <code>is_present</code> sensor. Inserted into the <code>homeassistant/{PRESENCE_SENSOR_TYPE}/mac_44_ef_44_ef_44_ef/is_present/</code> topic. See the <a target=\"_blank\" href=\"https://github.com/jokob-sk/NetAlertX/blob/main/front/plugins/_publisher_mqtt/README.md#usage\">Plugin readme</a> for details."
"string" : "The type of the sensor that should be generated for the <code>is_present</code> sensor. Inserted into the <code>homeassistant/{MQTT_PRESENCE_SENSOR_TYPE}/mac_44_ef_44_ef_44_ef/is_present/</code> topic. See the <a target=\"_blank\" href=\"https://github.com/jokob-sk/NetAlertX/blob/main/front/plugins/_publisher_mqtt/README.md#usage\">Plugin readme</a> for details."
}
]
},
Expand Down
4 changes: 3 additions & 1 deletion server/initialise.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def importConfigs (db):

# General
# ----------------------------------------
# ccd(key, default, config_dir, name, inputtype, options, group, events=[], desc = "", regex = "", setJsonMetadata = {}, overrideTemplate = {})

conf.SCAN_SUBNETS = ccd('SCAN_SUBNETS', ['192.168.1.0/24 --interface=eth1', '192.168.1.0/24 --interface=eth0'] , c_d, 'Subnets to scan', 'subnets', '', 'General')
conf.LOG_LEVEL = ccd('LOG_LEVEL', 'verbose' , c_d, 'Log verboseness', 'text.select', "['none', 'minimal', 'verbose', 'debug']", 'General')
Expand All @@ -115,6 +116,7 @@ def importConfigs (db):
conf.HRS_TO_KEEP_NEWDEV = ccd('HRS_TO_KEEP_NEWDEV', 0 , c_d, 'Keep new devices for', 'integer', "0", 'General')
conf.API_CUSTOM_SQL = ccd('API_CUSTOM_SQL', 'SELECT * FROM Devices WHERE dev_PresentLastScan = 0' , c_d, 'Custom endpoint', 'text', '', 'General')
conf.NETWORK_DEVICE_TYPES = ccd('NETWORK_DEVICE_TYPES', ['AP', 'Gateway', 'Firewall', 'Hypervisor', 'Powerline', 'Switch', 'WLAN', 'PLC', 'Router','USB LAN Adapter', 'USB WIFI Adapter', 'Internet'] , c_d, 'Network device types', 'list', '', 'General')
# conf.LOADED_PLUGINS = ccd('LOADED_PLUGINS', [] , c_d, 'Network device types', 'list', '', 'General')



Expand Down Expand Up @@ -158,7 +160,7 @@ def importConfigs (db):
pref = plugin["unique_prefix"]
print_plugin_info(plugin, ['display_name','description'])

# if plugin["enabled"] == 'true':
# if pref in conf.LOADED_PLUGINS or :

stringSqlParams = []

Expand Down

0 comments on commit 035ec80

Please sign in to comment.