Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hendricius committed Feb 28, 2021
1 parent e5f8d4d commit 03b1bab
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

A proofing box allows you to perfectly control the temperature making
it very easy to ferment sourdough, bread, any dough, pizza or even yoghurt.
Rather than buying one I built one myself and added a raspberry pi. Using
the pi you can see what's happening inside of the proofer and even have
night vision to see what is happening when the lid is closed.

![The final DYI dough proofer](/proofing-box.jpg)

This repo contains the code that I used for the raspberry PI to setup the
live stream and cron job that copies data to cloud storage.
live stream and cron job that copies data to cloud storage. For the cloud
support I used [rclone](https://rclone.org/)

[https://www.youtube.com/watch?v=PDeLAAloWNA](See the video on YouTube)
[See the full video on YouTube](https://www.youtube.com/watch?v=PDeLAAloWNA)

I have been using the raspberry pi 4. For the camera module, I have been using
the [https://amzn.to/3aYCQG3]("Longruner for Raspberry Pi 4 Camera Kamera Module").
the ["Longruner for Raspberry Pi 4 Camera Kamera Module".](https://amzn.to/3aYCQG3)
4 changes: 4 additions & 0 deletions camera.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
cd /home/pi/camera
rm -f latest.jpg
raspistill -v -vf -q 10 -o latest.jpg
11 changes: 11 additions & 0 deletions copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
cd ~/camera/

FILENAME=$(date +"%Y-%m-%d_%H_%M_%S")
DIR=$(date +"%Y-%j")

rclone copy latest.jpg drive:/raspberry/
rclone mkdir drive:/raspberry/all/$DIR
mv latest.jpg $FILENAME.jpg
rclone move $FILENAME.jpg drive:/raspberry/all/$DIR/
rm -f $FILENAME.jpg
24 changes: 24 additions & 0 deletions crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
*/5 * * * * /home/pi/camera.sh && /home/pi/copy.sh 2>&1
Binary file added proofing-box.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 03b1bab

Please sign in to comment.