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.

This commit is contained in:
Dracrius
2021-12-31 02:58:41 -05:00
parent b636429c0d
commit 599d7460ae

View File

@@ -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}"