Scripts for environmental monitoring with a Raspberry Pi.
- DS18S20 temperature sensor
- DHT11 temperature and humidity sensor
- SHT2x temperature and humidity sensor
- SHT7x temperature and humidity sensor
- BME280 temperature, humidity and pressure sensor
- BME680 temperature, humidity, pressure and air quality sensor
Usage:
python3 w1_temp.py
for DS18S20python3 dht11.py
for DHT11python3 sht21.py
for SHT2xpython3 sht75.py
for SHT7xpython3 bme280.py
for BME280python3 bme680.py
for BME680
Other tools/files:
example_sensor.py
is an example filepython3 graph.py
does some simple analysis (ROOT required)sh initi2c.sh
can be used to reset the i2c bus after an errorpython3 make_image.py
can be used for picture taking with a connected web camREADME.md
is this file
Usage:
python3 sensor_monitor.py --<sensors> --dir <directory>
for continuous read-out, results are saved to<directory>
python3 sensor_monitor_gui.py
contains a GUIpython3 server.py <file>
reports the current measurement status to a TCP client
Still under development
- You can compile
monitor.cc
for a continuous measurement of some sensors
Automatically start sensor_monitor.py
and server.py
at boot or when the processes crash
The files sensor_monitor.service
and sensor_server.service
must be copied to /etc/systemd/system
Enable the services (services start during boot)
systemctl enable sensor_monitor
systemctl enable sensor_server
Start the services
systemctl start sensor_monitor
systemctl start sensor_server
Stop the services
systemctl stop sensor_monitor
systemctl stop sensor_server