summaryrefslogtreecommitdiff
path: root/getpix.sh
diff options
context:
space:
mode:
authorst33v <github@f3rr3t.com>2016-12-29 15:04:33 +1100
committerst33v <github@f3rr3t.com>2016-12-29 15:04:33 +1100
commit6610463f97524004fc56736c1c7791013293322d (patch)
tree01666643ae4b69b8c8726014c39d50cf3b32b364 /getpix.sh
parent98cc377d642fdf5dbba042ae793c8659d5ac875d (diff)
merged sendpix.sh into getpix.sh
Diffstat (limited to 'getpix.sh')
-rwxr-xr-xgetpix.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/getpix.sh b/getpix.sh
index 43520ca..743540d 100755
--- a/getpix.sh
+++ b/getpix.sh
@@ -5,6 +5,7 @@
########### Constants ##################
campi="neatherd" # hard-code source hostname for the moment
+wanWebServer="f3rr3t.com"
sourcedir="/home/st33v/pix" # where the image is on the source computer (i.e. $campi)
thisdir="/home/st33v/cams" # this directory (on this computer)
threshold="2000" # minimum value of average pixel brightness. Tests if pic is too dark
@@ -53,7 +54,9 @@ fi
convert ${newpic} -unsharp 1.5x1+0.7+0.02 temp.jpg
convert temp.jpg -resize 33% -quality 70 ${newpic}
rm temp.jpg
-
-. ~/cams/sendpix.sh
+
+scp /home/st33v/cams/$campi/$newpic $wanWebServer:/home/st33v/farm/cam/$campi/.
+
+#. ~/cams/sendpix.sh
#exit(0) # force success exit code for fussy systemd