[bin] Fixing bin scripts and adding bus check
This commit is contained in:
@ -5,11 +5,11 @@ if [ "$1" = "mailbox" ]; then
|
||||
fi
|
||||
if [ "$1" = "basement_table" ]; then
|
||||
host="loge.local"
|
||||
port=8081
|
||||
port=8082
|
||||
fi
|
||||
if [ "$1" = "frontyard" ]; then
|
||||
host="loge.local"
|
||||
port=8082
|
||||
port=8081
|
||||
fi
|
||||
if [ "$1" = "basement_tv" ]; then
|
||||
port=8081
|
||||
@ -24,19 +24,19 @@ if [ "$1" = "bulkhead" ]; then
|
||||
host="kiviuq.local"
|
||||
fi
|
||||
if [ "$1" = "backyard" ]; then
|
||||
port=8082
|
||||
port=8081
|
||||
host="mundilfari.local"
|
||||
fi
|
||||
if [ "$1" = "backyard_low" ]; then
|
||||
port=8083
|
||||
port=8082
|
||||
host="mundilfari.local"
|
||||
fi
|
||||
if [ "$1" = "backyard_north" ]; then
|
||||
port=8084
|
||||
port=8083
|
||||
host="mundilfari.local"
|
||||
fi
|
||||
if [ "$1" = "basement_extension" ]; then
|
||||
port=8081
|
||||
port=8084
|
||||
host="mundilfari.local"
|
||||
fi
|
||||
if [ "$1" = "orchard" ]; then
|
||||
@ -72,7 +72,7 @@ if [ "$1" = "diningroom" ]; then
|
||||
host="kari.local"
|
||||
fi
|
||||
|
||||
ROOT="/var/photos/misc/webcams"
|
||||
ROOT="/media/photos/misc/webcams"
|
||||
filepath="$1/$(date +%Y)/$(date +%m)/$(date +%d)/$(date +%Y%m%d%H%M%S).jpg"
|
||||
mkdir -p /$ROOT/$1/$(date +%Y)/$(date +%m)/$(date +%d)/
|
||||
curl $host:$port/snapshot -o /$ROOT/$filepath
|
||||
|
||||
Reference in New Issue
Block a user