webcam-capture 265 B

1234567891011121314151617
  1. #!/bin/sh
  2. host = "loge.local"
  3. if [ "$1" = "east" ]; then
  4. port=8082
  5. fi
  6. if [ "$1" = "basement" ]; then
  7. port=8081
  8. fi
  9. if [ "$1" = "west" ]; then
  10. port=8081
  11. host="atlas.local"
  12. fi
  13. curl $host:$port/snapshot -o /media/photos/webcams/$1/$(date +%Y%m%d%H%M%S).jpg