From 54a07319cce842e945003ee523da513bdc22a0ff Mon Sep 17 00:00:00 2001 From: st33v Date: Sun, 25 Sep 2016 17:10:49 +1000 Subject: abstacted 'artist' to hostname for EXIF metadata --- takepix.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'takepix.sh') diff --git a/takepix.sh b/takepix.sh index 8038a24..006c46d 100755 --- a/takepix.sh +++ b/takepix.sh @@ -1,12 +1,16 @@ #!/bin/bash -picdir="/home/st33v/pix" +# define variables. Your needs may vary. +# use literal user name. Shell expansions may not work when this script is run by a service!Y +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=neatherd -q 70 -md 4: -o $thispic +/opt/vc/bin/raspistill -x IFD1.Artist=${artist} -q 70 -md 4: -o $thispic # silly portrait shape #/opt/vc/bin/raspistill -x IFD1.Artist=neatherd -w 1200 -o $thispic -- cgit v1.3