summaryrefslogtreecommitdiff
path: root/takepix.sh
diff options
context:
space:
mode:
authorst33v <github@f3rr3t.com>2016-09-25 17:10:49 +1000
committerst33v <github@f3rr3t.com>2016-09-25 17:10:49 +1000
commit54a07319cce842e945003ee523da513bdc22a0ff (patch)
treede9b2352b3299a7a33df3a3e3c191dab30aa23cc /takepix.sh
parent2de8bad0f6fc30fec09fcffda25eac8d2ca96f67 (diff)
abstacted 'artist' to hostname for EXIF metadata
Diffstat (limited to 'takepix.sh')
-rwxr-xr-xtakepix.sh8
1 files changed, 6 insertions, 2 deletions
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