Skip to content

Instantly share code, notes, and snippets.

@fmpwizard
Created April 15, 2014 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmpwizard/10698067 to your computer and use it in GitHub Desktop.
Save fmpwizard/10698067 to your computer and use it in GitHub Desktop.
Taking Time lapse pictures using the raspberry pi camera and sending the images to a local server/laptop
#!/bin/bash
let X=1;
while true; do
ssh -p 2200 pi@fmpwizard.no-ip.org raspistill -rot 90 -w 1024 -h 768 -o $X.jpg &&
scp -oPORT=2200 pi@fmpwizard.no-ip.org:$X.jpg . ;
ssh -p 2200 pi@fmpwizard.no-ip.org rm $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