Raspberry Gif Cam

Over several months the pi created gifs and jpgs look out of the window >57,000 gifs. The pi has now been repurposed.

A Gif every 9 minutes, see script at bottom of this page.

Posted to tumblr Sky Pi for posterity. The still images go to Broomhill Sky.

A jpg every 9 minutes too.

Each image is produced by a bash script run from a cron job.

I installed gifsicle to make gifs out of series of stills.

#!/usr/bin/env bash
for (( i = 0; i < 10; i++ )); do
	raspistill -h 486 -w 648 -a 1036 -vf -hf --encoding gif  -o /var/www/tempgifs/cam${i}.gif
done
gifsicle --delay=10 --colors 256  --loop /var/www/tempgifs/cam*  > /var/www/tempgifs/camd.gif
mv /var/www/tempgifs/camd.gif /var/www/camd.gif

DATE=$(date +"%Y-%m-%d_%H%M")
#curl -T /var/www/camd.gif -u raspberrypi@johnjohnston.name:pyD0palJ9ir6I ftp.johnjohnston.name/$DATE.gif
raspistill -h 486 -w 648 -a 1036 -ae +25+25 -vf -hf -o /var/www/camd.jpg
raspistill -a 1036 -ae +25+25 -vf -hf -o /var/www/camd-full.jpg
python /home/pi/pytumble.py