#!/bin/bash # define variables. Your needs may vary. # use literal user name. Shell expansions may not work when this script is run by a service! picdir="/home/st33v/pix" picdate=$(date +%Y-%m-%d_%H%M) thispic=$picdir/$picdate.jpg artist=$(hostname) # echo thispic = $thispic /opt/vc/bin/raspistill -x IFD1.Artist=${artist} -q 70 -md 4: -o $thispic # Note: we do no image processing on this pi, because it has so little RAM # left after devoting 128MB to the GPU (camera). # STAN does all the heavy lifting: # 1) delete nightshots (where threshold pixel value is not met) # 2) resize and unsharp mask ready for display on the internet.