From 9f5884c4e769b026135be484dce38a36d6deadf8 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sat, 28 Oct 2023 08:27:29 +1100 Subject: [PATCH] =?UTF-8?q?MQTT=20fix=20=F0=9F=A9=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 8 ++++---- front/plugins/_publisher_mqtt/mqtt.py | 2 +- front/plugins/dhcp_servers/config.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0a0f6f0f..f82406fb 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,10 +11,10 @@ services: network_mode: host # restart: unless-stopped volumes: - - ${APP_DATA_LOCATION}/pialert_dev/config:/home/pi/pialert/config - # - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config - - ${APP_DATA_LOCATION}/pialert_dev/db:/home/pi/pialert/db - # - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db + # - ${APP_DATA_LOCATION}/pialert_dev/config:/home/pi/pialert/config + - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config + # - ${APP_DATA_LOCATION}/pialert_dev/db:/home/pi/pialert/db + - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db # (optional) useful for debugging if you have issues setting up the container - ${LOGS_LOCATION}:/home/pi/pialert/front/log # --------------------------------------------------------------------------- diff --git a/front/plugins/_publisher_mqtt/mqtt.py b/front/plugins/_publisher_mqtt/mqtt.py index 532e7e1e..3b1bc47f 100755 --- a/front/plugins/_publisher_mqtt/mqtt.py +++ b/front/plugins/_publisher_mqtt/mqtt.py @@ -125,7 +125,7 @@ class sensor_config: watched3 = hash_value, watched4 = mac, extra = input_string, - foreignKey = notification["GUID"] + foreignKey = mac ) #------------------------------------------------------------------------------- diff --git a/front/plugins/dhcp_servers/config.json b/front/plugins/dhcp_servers/config.json index cc202fbd..a87f9e67 100755 --- a/front/plugins/dhcp_servers/config.json +++ b/front/plugins/dhcp_servers/config.json @@ -346,7 +346,7 @@ { "function": "RUN_TIMEOUT", "type": "integer", - "default_value":5, + "default_value":10, "options": [], "localized": ["name", "description"], "name" : [{