diff options
| author | st33v <github@f3rr3t.com> | 2016-09-25 17:10:49 +1000 |
|---|---|---|
| committer | st33v <github@f3rr3t.com> | 2016-09-25 17:10:49 +1000 |
| commit | 54a07319cce842e945003ee523da513bdc22a0ff (patch) | |
| tree | de9b2352b3299a7a33df3a3e3c191dab30aa23cc /takepix.sh | |
| parent | 2de8bad0f6fc30fec09fcffda25eac8d2ca96f67 (diff) | |
abstacted 'artist' to hostname for EXIF metadata
Diffstat (limited to 'takepix.sh')
| -rwxr-xr-x | takepix.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |
