Parcourir la source

[bin] Add west cam to webcam capture script

Colin Powell il y a 1 an
Parent
commit
69f1daf6db
1 fichiers modifiés avec 17 ajouts et 0 suppressions
  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