소스 검색

[bin] Add west cam to webcam capture script

Colin Powell 1 년 전
부모
커밋
69f1daf6db
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      bin/.bin/webcam-capture

+ 17 - 0
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