diff --git a/docs/HOME_ASSISTANT.md b/docs/HOME_ASSISTANT.md index 8321a0f9..64947e37 100755 --- a/docs/HOME_ASSISTANT.md +++ b/docs/HOME_ASSISTANT.md @@ -6,6 +6,7 @@ NetAlertX comes with MQTT support, allowing you to show all detected devices as - Please note that discovery takes about ~10s per device. - Deleting of devices is not handled automatically. Please use [MQTT Explorer](https://mqtt-explorer.com/) to delete devices in the broker (Home Assistant), if needed. +- For optimization reasons, the devices are not always fully synchronized. You can delete Plugin objects as described in the [MQTT plugin](https://github.com/jokob-sk/NetAlertX/tree/main/front/plugins/_publisher_mqtt#forcing-an-update) docs to force a full synchronization. ## 🧭 Guide diff --git a/docs/REVERSE_DNS.md b/docs/REVERSE_DNS.md index 07bab836..d30efb7b 100755 --- a/docs/REVERSE_DNS.md +++ b/docs/REVERSE_DNS.md @@ -27,6 +27,29 @@ If you are running a DNS server, such as **AdGuard**, set up **Private reverse D 5. Click **Apply** to save your settings. +### Specifying the DNS in the container + +You can specify the DNS server in the docker-compose to improve name resolution on your network. + +```yaml +services: + netalertx: + container_name: netalertx + image: "jokobsk/netalertx:latest" + restart: unless-stopped + volumes: + - /home/netalertx/config:/app/config + - /home/netalertx/db:/app/db + - /home/netalertx/log:/app/front/log + environment: + - TZ=Europe/Berlin + - PORT=20211 + network_mode: host + dns: + - 10.8.0.1 + - 10.8.0.17 +``` + ### Using a custom resolv.conf file You can configure a custom **/etc/resolv.conf** file in **docker-compose.yml** and set the nameserver to your LAN DNS server (e.g.: Pi-Hole). See the relevant [resolv.conf man](https://www.man7.org/linux/man-pages/man5/resolv.conf.5.html) entry for details. diff --git a/front/deviceDetails.php b/front/deviceDetails.php index 4961f278..fd81cf6c 100755 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -1458,7 +1458,7 @@ function setDeviceData (direction='', refreshCallback='') { somethingChanged = false; // refresh API - updateApi() + updateApi("devices,appevents") hideSpinner() @@ -1678,7 +1678,7 @@ function deleteDevice () { $('#panDetails :input').attr('disabled', true); // refresh API - updateApi() + updateApi("devices,appevents") } // ----------------------------------------------------------------------------- diff --git a/front/js/common.js b/front/js/common.js index 16e4db6d..3458581f 100755 --- a/front/js/common.js +++ b/front/js/common.js @@ -1006,11 +1006,11 @@ function hideSpinner() // -------------------------------------------------------- // Calls a backend function to add a front-end event to an execution queue -function updateApi() +function updateApi(apiEndpoints) { // value has to be in format event|param. e.g. run|ARPSCAN - action = `${getGuid()}|update_api|devices,appevents` + action = `${getGuid()}|update_api|${apiEndpoints}` $.ajax({ diff --git a/front/multiEditCore.php b/front/multiEditCore.php index df1a4cb0..a3d29187 100755 --- a/front/multiEditCore.php +++ b/front/multiEditCore.php @@ -305,7 +305,7 @@ function executeAction(action, whereColumnName, key, targetColumns, newTargetCol window.onbeforeunload = null; // update API endpoints to refresh the UI - updateApi() + updateApi("devices,appevents") write_notification(`[Multi edit] Executed "${action}" on Columns "${targetColumns}" matching "${key}"`, 'info') diff --git a/front/php/templates/language/cs_cz.json b/front/php/templates/language/cs_cz.json index f4b27227..379f7427 100755 --- a/front/php/templates/language/cs_cz.json +++ b/front/php/templates/language/cs_cz.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "", "Plugins_Filters_Mac": "", "Plugins_History": "", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "", "Plugins_Out_of": "", "Plugins_Unprocessed_Events": "", diff --git a/front/php/templates/language/de_de.json b/front/php/templates/language/de_de.json index 09802885..448bae10 100755 --- a/front/php/templates/language/de_de.json +++ b/front/php/templates/language/de_de.json @@ -573,6 +573,7 @@ "Plugins_DeleteAll": "Delete all (filters are ignored)", "Plugins_Filters_Mac": "Mac Filter", "Plugins_History": "Events History", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "Plugin Objects", "Plugins_Out_of": "von", "Plugins_Unprocessed_Events": "Unprocessed Events", diff --git a/front/php/templates/language/en_us.json b/front/php/templates/language/en_us.json index 6783797a..aa6ee345 100755 --- a/front/php/templates/language/en_us.json +++ b/front/php/templates/language/en_us.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "Delete all (filters are ignored)", "Plugins_Filters_Mac": "Mac Filter", "Plugins_History": "Events History", + "Plugins_Obj_DeleteListed": "Delete Listed Objects", "Plugins_Objects": "Plugin Objects", "Plugins_Out_of": "out of", "Plugins_Unprocessed_Events": "Unprocessed Events", diff --git a/front/php/templates/language/es_es.json b/front/php/templates/language/es_es.json index 5cadcd7d..4260988a 100755 --- a/front/php/templates/language/es_es.json +++ b/front/php/templates/language/es_es.json @@ -571,6 +571,7 @@ "Plugins_DeleteAll": "Eliminar todo (se ignoran los filtros)", "Plugins_Filters_Mac": "Filtro MAC", "Plugins_History": "Historial de eventos", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "Objetos del Plugin", "Plugins_Out_of": "de", "Plugins_Unprocessed_Events": "Eventos sin procesar", @@ -777,4 +778,4 @@ "settings_update_item_warning": "Actualice el valor a continuación. Tenga cuidado de seguir el formato anterior. O la validación no se realiza.", "test_event_icon": "fa-vial-circle-check", "test_event_tooltip": "Guarda tus cambios antes de probar nuevos ajustes." -} +} \ No newline at end of file diff --git a/front/php/templates/language/fr_fr.json b/front/php/templates/language/fr_fr.json index 7d856b9f..1851f229 100755 --- a/front/php/templates/language/fr_fr.json +++ b/front/php/templates/language/fr_fr.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "Tout supprimer (ne prend pas en compte les filtres)", "Plugins_Filters_Mac": "Filtrer par MAC", "Plugins_History": "Historique des événements", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "Objets des plugins", "Plugins_Out_of": "sur", "Plugins_Unprocessed_Events": "Événements non traités", @@ -698,4 +699,4 @@ "settings_update_item_warning": "Mettre à jour la valeur ci-dessous. Veillez à bien suivre le même format qu'auparavant. Il n'y a pas de pas de contrôle.", "test_event_icon": "fa-vial-circle-check", "test_event_tooltip": "Enregistrer d'abord vos modifications avant de tester vôtre paramétrage." -} +} \ No newline at end of file diff --git a/front/php/templates/language/it_it.json b/front/php/templates/language/it_it.json index c2cb3045..044061fe 100755 --- a/front/php/templates/language/it_it.json +++ b/front/php/templates/language/it_it.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "Elimina tutti (i filtri vengono ignorati)", "Plugins_Filters_Mac": "Filtro MAC", "Plugins_History": "Storico eventi", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "Oggetti plugin", "Plugins_Out_of": "fuori da", "Plugins_Unprocessed_Events": "Eventi non processati", diff --git a/front/php/templates/language/nb_no.json b/front/php/templates/language/nb_no.json index 06cbe8de..1079a167 100755 --- a/front/php/templates/language/nb_no.json +++ b/front/php/templates/language/nb_no.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "Slett alle (filtre blir ignorert)", "Plugins_Filters_Mac": "Mac filter", "Plugins_History": "Hendelses historikk", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "Plugin-objekter", "Plugins_Out_of": "ut av", "Plugins_Unprocessed_Events": "Uprosesserte hendelser", diff --git a/front/php/templates/language/pl_pl.json b/front/php/templates/language/pl_pl.json index d2f9b517..56761301 100755 --- a/front/php/templates/language/pl_pl.json +++ b/front/php/templates/language/pl_pl.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "Usuń wszystkie (filtry są ignorowane)", "Plugins_Filters_Mac": "Filtr MAC", "Plugins_History": "Historia Wydarzeń", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "Obiekty Wtyczek", "Plugins_Out_of": "brakujące", "Plugins_Unprocessed_Events": "Nieprzeprocesowane Wydarzenia", diff --git a/front/php/templates/language/pt_br.json b/front/php/templates/language/pt_br.json index 54fc0854..0aba2ef3 100755 --- a/front/php/templates/language/pt_br.json +++ b/front/php/templates/language/pt_br.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "", "Plugins_Filters_Mac": "", "Plugins_History": "", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "", "Plugins_Out_of": "", "Plugins_Unprocessed_Events": "", diff --git a/front/php/templates/language/ru_ru.json b/front/php/templates/language/ru_ru.json index 20f49c98..9a2c727f 100755 --- a/front/php/templates/language/ru_ru.json +++ b/front/php/templates/language/ru_ru.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "Удалить все (фильтры игнорируются)", "Plugins_Filters_Mac": "Фильтр MAC-адреса", "Plugins_History": "История событий", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "Объекты плагина", "Plugins_Out_of": "из", "Plugins_Unprocessed_Events": "Необработанные события", diff --git a/front/php/templates/language/tr_tr.json b/front/php/templates/language/tr_tr.json index 29f23c35..9fc61be6 100755 --- a/front/php/templates/language/tr_tr.json +++ b/front/php/templates/language/tr_tr.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "", "Plugins_Filters_Mac": "", "Plugins_History": "", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "", "Plugins_Out_of": "", "Plugins_Unprocessed_Events": "", diff --git a/front/php/templates/language/zh_cn.json b/front/php/templates/language/zh_cn.json index a078ad5b..95f18dd0 100755 --- a/front/php/templates/language/zh_cn.json +++ b/front/php/templates/language/zh_cn.json @@ -532,6 +532,7 @@ "Plugins_DeleteAll": "全部删除(忽略过滤器)", "Plugins_Filters_Mac": "Mac 过滤器", "Plugins_History": "事件历史", + "Plugins_Obj_DeleteListed": "", "Plugins_Objects": "插件对象", "Plugins_Out_of": "", "Plugins_Unprocessed_Events": "未处理的事件", diff --git a/front/pluginsCore.php b/front/pluginsCore.php index fe452ab9..7f0bd596 100755 --- a/front/pluginsCore.php +++ b/front/pluginsCore.php @@ -246,9 +246,6 @@ function getData(){ generateTabs() - // hide spinning icon - hideSpinner() - }); }); }); @@ -259,6 +256,8 @@ function getData(){ // ----------------------------------------------------------------------------- function generateTabs() { + showSpinner() + activetab = 'active' // clear previous headers data @@ -413,6 +412,8 @@ function generateTabs()