A simple Raspberry Pi service to monitor temperature, humidity, barometric pressure, ambient ligth, UV index, CO2 and TVOC levels.
- SparkFun Air Quality Sensor SGP30 (Qwiic)
- SparkFun Temp/Atmospheric/Humidity/Barometric Pressure Sensor BME280 (Qwiic)
- AdaFruit ALS+UV Sensor LTR390 (Qwiic)
- SparkFun 20x4 SerLCD - RGB Backlight (Qwiic)
All sensors are connected using the Qwiic Connect System.
- InfluxDB and Grafana
- Python 3
- Install InfluxDB and Grafana. I recommend Installing InfluxDB & Grafana on Raspberry Pi guide.
- Clone this repo.
- Install Python packages required for sensors:
sudo pip3 install -r requirements.txt
. - Edit
homestats.ini
and set InfluxDB access credentials for Grafana user. Beware that the password is stored in plain text, so is probably better ensure that this file is readable only by the service user (usually thepi
user). - Install the
homestats
service:sudo ./install_service.sh
script. - Start the service:
sudo systemctl start homestats.service
. - Open Grafana and import
homestats_dashboard.json
dashboard to visualise sensor data.