Control a proofing chamber through a local network on a raspberry pi.
- Raspberry Pi with Raspian OS
- Relay board (see IoT Relay Board )
- DS18B20 temperature sensor (link)
- 4.7k pull up resistor (see Adafruit tutorial for hook up)
- Box to hold dough and maintain temperature
- 40-60 W incandescent bulb
Hook up the relay switch to the GPIO pin 13 (GPIO27 label).
Assign a static local IP address to your raspberry pi, this will allow you to access the web interface from the same address.
Install flask for python 3
pip3 install flask
Clone the repository to the pi user's home directory (~/)
git clone https://github.com/david-hopper/pi-proofer.git
Add the following statements to the ~/.profile file to serve the website and start the controller upon login. This simplifies the turn on procedure to simply plugging in the raspbery pi and relay.
To edit the .profile file, enter
pi@raspberrypi:~/nano .profile
Then add
# Change into proofer
cd "pi-proofer/"
# Force clear the lock file if it wasn't cleaned up
rm -f "status.json.lock"
# Run the website and controller in two different tmux windows and auto detach
tmux new -d -s "website" ". ./run_website"
tmux new -d -s "controller" ". ./run_controller"
and save the file
Reboot the raspberry pi and it will be ready to go. Access your pi by entering :5000 into a browser on the same wifi network as the raspberyy pi.
To access the two processes running on the raspberry pi, one can enter
tmux attach 'website'
or
tmux attach 'controller'
To view the website or controller outputs