diff --git a/scripts/lightcommander b/scripts/lightcommander index a14d7d6..09704e1 100755 --- a/scripts/lightcommander +++ b/scripts/lightcommander @@ -4,6 +4,7 @@ then echo "usage: $0 {main|chill|status|labsocket|alarm|screen} {on|off}" echo "usage: $0 {projector} {on|hdmi1|hdmi2|dvi|vga1|off}" echo "usage; $0 {receiver} {on|off|hdmi|jack1|jack2|optical}" + echo "usage: $0 {maindoor} {open}" exit 1 fi function dolight() { @@ -35,6 +36,8 @@ function dolight() { ;; receiver) sudo /root/pidor/scripts/beamercontrol.sh receiver "$2" ;; + maindoor) sudo /root/pidor/scripts/opendoor.sh + ;; esac # type (2=10bit) # | house 1-16 (the dial thingie) diff --git a/scripts/opendoor.sh b/scripts/opendoor.sh new file mode 100755 index 0000000..cf9696e --- /dev/null +++ b/scripts/opendoor.sh @@ -0,0 +1,3 @@ +#!/bin/bash +BUZZERURL="$(cat "$(dirname "$0")"/secret.txt)/state.xml?relay1State=2&pulseTime1=5" +wget -O - --timeout=1 --tries=1 $BUZZERSTATUSURL diff --git a/www/htdocs/lights.level2.lu/index.html b/www/htdocs/lights.level2.lu/index.html index 7c9e50e..5356281 100644 --- a/www/htdocs/lights.level2.lu/index.html +++ b/www/htdocs/lights.level2.lu/index.html @@ -93,6 +93,12 @@

Off

+
+
+

Main Door

+

Open door

+
+