From 599d7460aeabbdb433d9cebacb00e82ca022c2c6 Mon Sep 17 00:00:00 2001 From: Dracrius Date: Fri, 31 Dec 2021 02:58:41 -0500 Subject: [PATCH] Changed Root Topic to a more standard hardcoded one "octoprint/plugins/enclosure" may add config field later if I see the need. Those who really want to change it can do so here for now. --- octoprint_enclosure/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_enclosure/__init__.py b/octoprint_enclosure/__init__.py index 2bb8d7b..f07ea9c 100644 --- a/octoprint_enclosure/__init__.py +++ b/octoprint_enclosure/__init__.py @@ -77,7 +77,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplateP # mqtt helper self.mqtt_publish = lambda *args, **kwargs: None # hardcoded - self.mqtt_root_topic = "Monolith/temperature/enclosure" + self.mqtt_root_topic = "octoprint/plugins/enclosure" self.mqtt_sensor_topic = self.mqtt_root_topic + "/" + "enclosure" self.mqtt_message = "{\"temperature\": 0, \"humidity\": 0}"