cron/webcam.sh: relative path now

This commit is contained in:
Felix Buehler 2017-04-13 12:27:07 +02:00
parent 5dbd636062
commit 7c46129c2e

View file

@ -6,7 +6,7 @@ size="1280x720"
mkdir -p $path
streamer -q -f jpeg -s $size -o $path$now.jpeg -r 1
grey="$(python3 ./blackcheck.py -i $path$now.jpeg -d 10)"
grey="$(python3 $(basedir $(readlink -f $0))/blackcheck.py -i $path$now.jpeg -d 10)"
# echo $grey
if [ "$grey" = "True" ] ; then
# echo "Has to move"