From 6276a51f0587b34b1c9200107f745bd47a14652e Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 22 Aug 2024 20:15:14 -0400 Subject: [PATCH] Mostly working, reconnects after every detected change --- src/custom_modules/HestiaClasses.js | 5 ++++- src/custom_modules/config.json | 2 +- src/python/{fake_gpio.py => fake_gpio_interface.py} | 0 3 files changed, 5 insertions(+), 2 deletions(-) rename src/python/{fake_gpio.py => fake_gpio_interface.py} (100%) diff --git a/src/custom_modules/HestiaClasses.js b/src/custom_modules/HestiaClasses.js index 7db0d3a..3d35994 100644 --- a/src/custom_modules/HestiaClasses.js +++ b/src/custom_modules/HestiaClasses.js @@ -96,7 +96,10 @@ module.exports = { } }); }); - + }); + + client.on('disconnect', () => { + console.log('Disconnected from MQTT broker'); }); // Handle when the Broker sends us a message diff --git a/src/custom_modules/config.json b/src/custom_modules/config.json index cc6aa1b..8868f05 100644 --- a/src/custom_modules/config.json +++ b/src/custom_modules/config.json @@ -61,5 +61,5 @@ "exhaustDelay": 600000 } }, - "gpioScript": "src/python/gpio_interface.py" + "gpioScript": "src/python/fake_gpio_interface.py" } \ No newline at end of file diff --git a/src/python/fake_gpio.py b/src/python/fake_gpio_interface.py similarity index 100% rename from src/python/fake_gpio.py rename to src/python/fake_gpio_interface.py