From 26bd74123ad21ccc560e496b9f1e3e9eb3e4a1b9 Mon Sep 17 00:00:00 2001 From: st33v Date: Tue, 10 Jan 2017 17:26:51 +1100 Subject: generalised takepix.sh for various hosts and camera versions. --- takepix.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'takepix.sh') diff --git a/takepix.sh b/takepix.sh index 3f3759b..db05b9f 100755 --- a/takepix.sh +++ b/takepix.sh @@ -6,10 +6,22 @@ picdir="/home/st33v/pix" picdate=$(date +%Y-%m-%d_%H%M) thispic=$picdir/$picdate.jpg artist=$(hostname) +jpgQuality="90" # echo thispic = $thispic -/opt/vc/bin/raspistill -x IFD1.Artist=${artist} -q 70 -md 4: -o $thispic +case ${artist^^} in + + LUCERNE) + /opt/vc/bin/raspistill -vf -hf -x IFD1.Artist=${artist} -q $jpgQuality -md 4: -o $thispic;; + + NEATHERD) + /opt/vc/bin/raspistill -x IFD1.Artist=${artist} -q $jpgQuality -md 4: -o $thispic;; + + *) + /opt/vc/bin/raspistill -x IFD1.Artist=${artist} -q $jpgQuality -md 4: -o $thispic;; + +esac # Note: we do no image processing on this pi, because it has so little RAM # left after devoting 128MB to the GPU (camera). -- cgit v1.3