- A project to report the temperature of an area to a mailing list when it falls out of a threshold, from a Raspberry Pi
- Handles logging, graphing, mailing a list, replying to requests for data and displaying a webpage
- This project is archived, as it was created for learning and is now largely unused
- As it's unused and quite a lot needs maintaining, I don't feel it's worth the effort
-
All required and recommended packages are automatically installed when running the installer, except
scipy
, which needs to be installed manually -
- Python 3.6+
- cython
- flask
- matplotlib
- numpy
- pillow
- scipy
- setuptools
- w1thermsensor
-
- build-essential
- gcc && g++
- gfortran
- libopenblas-dev && libopenblas-base && libatlas-base-dev
- tmux
- Make sure the wiring for the sensor is complete (Diagram can be found at the end)
git clone https://github.com/stuarthayhurst/temp-report.git
- Install
scipy
,python
(3.6+) andpip3
- Install other dependencies listed in the previous section
- Enable OneWire:
echo "dtoverlay=w1-gpio" | sudo tee -a /boot/config.txt > /dev/null
- Generate the configs:
python3 tempreport.py -c
- Run
python3 tempreport.py --help
, and set a sender email address, name and password - Run
python3 tempreport.py -a
to setup a mailing list - Change config values to your liking, in
data/config.py
- Use
python3 tempreport.py -h
to view help - Use
tmux att -t temp_report
to view the program - Use
tmux att -t temp_listener
to view the email reply bot - Use
tmux att -t temp_log
to view the automatic temperature log - Use
tmux att -t temp_web
to view the web frontend log - Run
./install/setup.sh
to allow the program to start on boot - After an update, add any missing config values from
data/config-template.py
todata/config.py
- A Pi 3 or better is strongly recommended
- See wiki for more information
- Diagram credit: Les Pounder
- GNU GENERAL PUBLIC LICENSE (v3)