Raspberry Gif Cam

gifs and counting..

I've set this up again on a pi zero, Dec 2017

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

Posted to tumblr Sky Pi for posterity. Stil images go to Broomhill Sky.


A jpg every 15 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
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
raspistill -h 486 -w 648 -a 1036 -ae +25+25 -vf -hf -o /var/www/camd.jpg
#the images are uploaded to tumblr via  a python script