vitormhenrique / OctoPrint-Enclosure

OctoPrint Enclosure Plugin
GNU General Public License v3.0
397 stars 202 forks source link

Overall DHT11,22,2302 Improvments + MQTT Publishing Support #461

Closed Dracrius closed 2 years ago

Dracrius commented 2 years ago

This is branched from @markleary's pull request that avoids bad readings. I added the DHT11,22,2302 airquality = 0 fix to make a more complete update to the way DHT readings are handled. I also began implementing MQTT Publishing Support using the MQTT Plugins Helper functions. There is currently no config for the topic ("octoprint/plugins/enclosure") but it will work out of the box as long as the MQTT plugin is installed and configured. I also tested to verify it still runs as expected without the MQTT Plugin. So adding this shouldn't break anything or force MQTT plugin to be a dependency.