[bin] Add camcap and deprecate old scripts
This commit is contained in:
BIN
bin/.bin/camcap
Executable file
BIN
bin/.bin/camcap
Executable file
Binary file not shown.
@ -18,14 +18,17 @@ WEBCAMS=(
|
|||||||
"basement_extension"
|
"basement_extension"
|
||||||
"backyard_low"
|
"backyard_low"
|
||||||
"backyard_north"
|
"backyard_north"
|
||||||
|
"backyard_house"
|
||||||
"basement_cape"
|
"basement_cape"
|
||||||
"basement_tv"
|
"basement_tv"
|
||||||
"backyard"
|
"backyard"
|
||||||
"bulkhead"
|
"bulkhead"
|
||||||
"barn"
|
"barn"
|
||||||
"garage"
|
"penobscot"
|
||||||
"birds"
|
"birds"
|
||||||
"clouds"
|
"clouds"
|
||||||
|
"porch"
|
||||||
|
"firewood"
|
||||||
"garden"
|
"garden"
|
||||||
"diningroom"
|
"diningroom"
|
||||||
)
|
)
|
||||||
|
|||||||
@ -11,9 +11,11 @@
|
|||||||
/home/powellc/.bin/webcam-capture backyard
|
/home/powellc/.bin/webcam-capture backyard
|
||||||
/home/powellc/.bin/webcam-capture bulkhead
|
/home/powellc/.bin/webcam-capture bulkhead
|
||||||
/home/powellc/.bin/webcam-capture barn
|
/home/powellc/.bin/webcam-capture barn
|
||||||
/home/powellc/.bin/webcam-capture garage
|
/home/powellc/.bin/webcam-capture penobscot
|
||||||
/home/powellc/.bin/webcam-capture porch
|
/home/powellc/.bin/webcam-capture porch
|
||||||
/home/powellc/.bin/webcam-capture birds
|
/home/powellc/.bin/webcam-capture birds
|
||||||
/home/powellc/.bin/webcam-capture clouds
|
/home/powellc/.bin/webcam-capture clouds
|
||||||
|
/home/powellc/.bin/webcam-capture firewood
|
||||||
/home/powellc/.bin/webcam-capture garden
|
/home/powellc/.bin/webcam-capture garden
|
||||||
|
/home/powellc/.bin/webcam-capture backyard_house
|
||||||
/home/powellc/.bin/webcam-capture diningroom
|
/home/powellc/.bin/webcam-capture diningroom
|
||||||
@ -16,15 +16,15 @@ if [ "$1" = "basement_tv" ]; then
|
|||||||
host="polydeuces.local"
|
host="polydeuces.local"
|
||||||
fi
|
fi
|
||||||
if [ "$1" = "bulkhead" ]; then
|
if [ "$1" = "bulkhead" ]; then
|
||||||
port=8081
|
port=8083
|
||||||
host="mimas.local"
|
host="mimas.local"
|
||||||
fi
|
fi
|
||||||
if [ "$1" = "basement_cape" ]; then
|
if [ "$1" = "basement_cape" ]; then
|
||||||
port=8082
|
port=8081
|
||||||
host="mimas.local"
|
host="mimas.local"
|
||||||
fi
|
fi
|
||||||
if [ "$1" = "firewood" ]; then
|
if [ "$1" = "firewood" ]; then
|
||||||
port=8083
|
port=8082
|
||||||
host="mimas.local"
|
host="mimas.local"
|
||||||
fi
|
fi
|
||||||
if [ "$1" = "backyard" ]; then
|
if [ "$1" = "backyard" ]; then
|
||||||
@ -43,11 +43,11 @@ if [ "$1" = "backyard_north" ]; then
|
|||||||
port=8084
|
port=8084
|
||||||
host="mundilfari.local"
|
host="mundilfari.local"
|
||||||
fi
|
fi
|
||||||
if [ "$1" = "barn" ]; then
|
if [ "$1" = "penobscot" ]; then
|
||||||
port=8081
|
port=8081
|
||||||
host="iapetus.local"
|
host="iapetus.local"
|
||||||
fi
|
fi
|
||||||
if [ "$1" = "garage" ]; then
|
if [ "$1" = "barn" ]; then
|
||||||
port=8082
|
port=8082
|
||||||
host="iapetus.local"
|
host="iapetus.local"
|
||||||
fi
|
fi
|
||||||
@ -67,10 +67,26 @@ if [ "$1" = "garden" ]; then
|
|||||||
port=8083
|
port=8083
|
||||||
host="siarnaq.local"
|
host="siarnaq.local"
|
||||||
fi
|
fi
|
||||||
|
if [ "$1" = "backyard_house" ]; then
|
||||||
|
port=8084
|
||||||
|
host="siarnaq.local"
|
||||||
|
fi
|
||||||
if [ "$1" = "diningroom" ]; then
|
if [ "$1" = "diningroom" ]; then
|
||||||
port=8081
|
port=8081
|
||||||
host="kari.local"
|
host="kari.local"
|
||||||
fi
|
fi
|
||||||
|
if [ "$1" = "orchard" ]; then
|
||||||
|
port=8081
|
||||||
|
host="skoll.local"
|
||||||
|
fi
|
||||||
|
if [ "$1" = "mainbedroom" ]; then
|
||||||
|
port=8082
|
||||||
|
host="skoll.local"
|
||||||
|
fi
|
||||||
|
if [ "$1" = "woodstove" ]; then
|
||||||
|
port=8081
|
||||||
|
host="suttungr.local"
|
||||||
|
fi
|
||||||
|
|
||||||
ROOT="/media/photos/misc/webcams"
|
ROOT="/media/photos/misc/webcams"
|
||||||
filepath="$1/$(date +%Y)/$(date +%m)/$(date +%d)/$(date +%Y%m%d%H%M%S).jpg"
|
filepath="$1/$(date +%Y)/$(date +%m)/$(date +%d)/$(date +%Y%m%d%H%M%S).jpg"
|
||||||
Reference in New Issue
Block a user