Skip to content

Instantly share code, notes, and snippets.

@tatic0
Created August 26, 2013 20:41
Show Gist options
  • Save tatic0/6346414 to your computer and use it in GitHub Desktop.
Save tatic0/6346414 to your computer and use it in GitHub Desktop.
shell script to generate pictures for a timelapse with RaspberryPi camera module using raspistill
#!/bin/bash
echo "how many pictures you want to take?"
read hmany
echo "at which interval"
read interval
counter=1
while [ $counter -le $hmany ]
do counter=$(($counter+1))
pictname=`date +%s`
raspistill -o tl-$pictname.jpg -q 100 -v -ex off -awb off -mm average -t 100
sleep $interval
done
@tatic0
Copy link
Author

tatic0 commented Aug 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment