This script checks a CSV of BSEC data from the BME680 sensor periodically for some significant change and gives feedback in form of a sentence, which can be useful for automatic notifications.
Average air 🙂 [92 IAQ], but it's cold ❄ [19.0 °C].
- bc for float operations
- sh that has integer indexed arrays
Expected CSV format:
date,IAQ accuracy,IAQ index,temperature,humidity,pressure,gas,BSEC status
e.g:
2018-01-04 20:21:10,3,70.92,21.05,46.53,988.64,749721,0
You can find an example for fitting output code for bsec_bme680_linux in the header of the file.
A python script that can be triggered by pretty_BSEC.sh to draw bars for IAQ, temperature and humidity to a LED matrix. I used a Unicorn HAT HD.
- python
- unicorn-hat-hd
Simple live web chart using Chart.js.
Example pulls readings from CSV file via cgi-bin script.
- Chart.js
- jquery