[bin] Add west cam to webcam capture script

This commit is contained in:
2024-03-04 10:38:15 -05:00
parent 6c9c9bda0a
commit 69f1daf6db

17
bin/.bin/webcam-capture Executable file
View 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