summaryrefslogtreecommitdiff
path: root/takepix.sh
diff options
context:
space:
mode:
authorst33v <github@f3rr3t.com>2017-01-10 17:26:51 +1100
committerst33v <github@f3rr3t.com>2017-01-10 17:26:51 +1100
commit26bd74123ad21ccc560e496b9f1e3e9eb3e4a1b9 (patch)
tree7376f53523d3162578394bd842d6e83874ab8dec /takepix.sh
parentcddffaed4dd41e376c58f301ac127cd19ca65982 (diff)
generalised takepix.sh for various hosts and camera versions.
Diffstat (limited to 'takepix.sh')
-rwxr-xr-xtakepix.sh14
1 files changed, 13 insertions, 1 deletions
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).