diff --git a/isphonehere.sh b/isphonehere.sh index f67347c..b1b6247 100755 --- a/isphonehere.sh +++ b/isphonehere.sh @@ -1,8 +1,12 @@ #!/bin/bash -# script to set away state in zm when the phone is not present +# script to set away state in ZoneMinder when the phone is not present # requires jq to be installed + + curdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +#load configuration . $curdir/isphonehere.config.sh currentstate= @@ -56,7 +60,7 @@ waitbeforeretry() { fi } -#so we know what state we are in +#read current state on startup, so we know what state we are in setcurrentstate #look for phone