aqi_monitor/aqi_monitor_py
simon 70f5f14211
add more pi setup info
2023-03-12 17:58:07 +07:00
..
sensor fix inaccurate sensor startup sleep 2022-10-23 16:35:01 +07:00
service add py aqi_monitor implementation 2022-10-21 16:03:47 +07:00
README.md add more pi setup info 2023-03-12 17:58:07 +07:00
requirements.txt add py aqi_monitor implementation 2022-10-21 16:03:47 +07:00

README.md

Python Sensor Application

Updated script running on a RaspberryPi. Pure python implementation.

Pi Setup

Enable I2C1: sudo raspi-config > Interface Options > I2C

Install libraries

sudo apt install git python3-pip
pip3 install -r requirements.txt

Setup config.json

Install service

sudo cp aqi_monitor/aqi_monitor_py/service/sensor.* /etc/systemd/system
sudo systemctl enable --now sensor.timer

Watch service logs for errors:

journalctl -u sensor -f