diff options
| author | st33v <github@f3rr3t.com> | 2017-01-10 17:26:51 +1100 |
|---|---|---|
| committer | st33v <github@f3rr3t.com> | 2017-01-10 17:26:51 +1100 |
| commit | 26bd74123ad21ccc560e496b9f1e3e9eb3e4a1b9 (patch) | |
| tree | 7376f53523d3162578394bd842d6e83874ab8dec | |
| parent | cddffaed4dd41e376c58f301ac127cd19ca65982 (diff) | |
generalised takepix.sh for various hosts and camera versions.
| -rwxr-xr-x | takepix.sh | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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). |
