Files
dotfiles/bin/.bin/webcam-capture

18 lines
265 B
Bash
Executable File

#!/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