Skip to content

Instantly share code, notes, and snippets.

@fmpwizard
Created April 15, 2014 02:51
Show Gist options
  • Select an option

  • Save fmpwizard/10698067 to your computer and use it in GitHub Desktop.

Select an option

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