diff --git a/bin/.bin/webcam-capture b/bin/.bin/webcam-capture new file mode 100755 index 0000000..49c54af --- /dev/null +++ b/bin/.bin/webcam-capture @@ -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