pimoroni / bme680-python

Python library for the BME680 gas, temperature, humidity and pressure sensor.
https://shop.pimoroni.com/products/bme680
MIT License
260 stars 93 forks source link

Add human readable IAQ scores #2

Closed ghost closed 6 years ago

ghost commented 6 years ago

From table 4, page 9 of the BME680 datasheet, I've added in the AQ classification (good, average, etc), tidied up the formatting of the output and made a couple of extremely trivial pylint fixups. My coding skills are still pretty basic and there is probably a much more efficient way to do this, so feel free to reject this if it's unsuitable.

ghost commented 6 years ago

Never mind. I took the air quality reading to be a reflection of the IAQ scale in the datasheet rather than a percentage. As an aside, is it worth adding a percent symbol after the air quality output, and maybe something to indicate if a low or high percentage is good?