Skip to content

Instantly share code, notes, and snippets.

@tatic0
Created August 15, 2013 07:34
Show Gist options
  • Save tatic0/6238942 to your computer and use it in GitHub Desktop.
Save tatic0/6238942 to your computer and use it in GitHub Desktop.
simple bash script to do a time lapse with raspistill
#!/bin/bash
echo "how long do you want to take pictures? (in seconds)"
read hlong
echo "at which interval (in seconds)"
read interval
echo "please provide a prefix to name the pictures"
read prefix
hlongms=$(($hlong*1000))
intervalms=$(($interval*1000))
raspistill -t $hlongms -tl $intervalms -o $prefix%d.jpg -v -mm average -n -awb off -ex sports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment