vitormhenrique / OctoPrint-Enclosure

OctoPrint Enclosure Plugin
GNU General Public License v3.0
395 stars 201 forks source link

Fixed implementation for BME680 sensor #482

Closed n8many closed 2 years ago

n8many commented 2 years ago

Hello @vitormhenrique,

I also was having issues with this sensor mentioned in #462 and after some investigation, I found the root cause, a space in a filename in 'init.py'.

This also led me to find some improper exception handling as well as some data that was not being read from the sensor, and therefore not being returned.

The changes below should fix the BME680 as well as enable it as a source of Humidity information.

Thanks, Nathan