[bin] Add west cam to webcam capture script
This commit is contained in:
17
bin/.bin/webcam-capture
Executable file
17
bin/.bin/webcam-capture
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
host = "loge.local"
|
||||
|
||||
if [ "$1" = "east" ]; then
|
||||
port=8082
|
||||
fi
|
||||
|
||||
if [ "$1" = "basement" ]; then
|
||||
port=8081
|
||||
fi
|
||||
|
||||
if [ "$1" = "west" ]; then
|
||||
port=8081
|
||||
host="atlas.local"
|
||||
fi
|
||||
|
||||
curl $host:$port/snapshot -o /media/photos/webcams/$1/$(date +%Y%m%d%H%M%S).jpg
|
||||
Reference in New Issue
Block a user