Created
November 12, 2013 01:30
-
-
Save fmpwizard/7423847 to your computer and use it in GitHub Desktop.
Take pictures on the Raspberry Pi once a second and store them on a uuid named folder
This runs at boot time using @reboot on cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
let X=1; | |
folder=`/usr/bin/dbus-uuidgen` | |
cd /home/pi/camera/trip | |
mkdir $folder | |
cd $folder | |
while true; do | |
raspistill -rot 90 -w 1024 -h 768 -o $X.jpg | |
sync | |
echo "Image: $X.jpg"; | |
X=$((X+1)); | |
sleep 1; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment