Skip to content

Instantly share code, notes, and snippets.

@fmpwizard
Created November 12, 2013 01:30
Show Gist options
  • Save fmpwizard/7423847 to your computer and use it in GitHub Desktop.
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
#!/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