From 85eceb160776ca8bded119ae989a5a9713e5aa75 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Wed, 18 May 2011 16:31:08 +0200 Subject: download dachcam image directly from webcam --- scripts/dachcam | 3 ++- scripts/webcamscript | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/dachcam b/scripts/dachcam index 78b4f93..6dd294d 100755 --- a/scripts/dachcam +++ b/scripts/dachcam @@ -1,6 +1,7 @@ #!/bin/bash -URL="http://172.22.83.12/webcam/webcam.png" # This actually is a jpeg... +URL="http://104.61.104.9:8000/images1sif" # This actually is a jpeg... +WGET_ARGS="--user=root --password=weltrekord" NAME="dach" TIMESTAMP="no" diff --git a/scripts/webcamscript b/scripts/webcamscript index 3b490fb..883ef79 100644 --- a/scripts/webcamscript +++ b/scripts/webcamscript @@ -5,7 +5,7 @@ TODAY=`date` TIME=`date +"%H"` -wget "${URL}" -O ${WEBPATH}/public/img/buffer.${NAME}.webcam.jpg &> /dev/null || exit 1 +wget "${URL}" $WGET_ARGS -O ${WEBPATH}/public/img/buffer.${NAME}.webcam.jpg &> /dev/null || exit 1 cp ${WEBPATH}/public/img/buffer.${NAME}.webcam.jpg ${WEBPATH}/public/img/buffer.thumb.${NAME}.webcam.jpg mogrify -resize 200x150 ${WEBPATH}/public/img/buffer.thumb.${NAME}.webcam.jpg -- cgit v1.2.1