Initial commit with current scripts

This commit is contained in:
Felix Favre 2014-06-06 13:48:56 +02:00
commit 33314ad2a5
3 changed files with 51 additions and 0 deletions

17
dooropen Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
echo "Initializing Door Systems..."
echo "2" > /sys/class/gpio/unexport
echo "2" > /sys/class/gpio/export
sleep 0.5
echo "Securing Communication to Door Systems..."
echo "out" > /sys/class/gpio/gpio2/direction
sleep 0.5
echo "Open Communication Channel..."
curl dooris.gnomus.de/dooropen
echo "Opening Door..."
echo "1" > /sys/class/gpio/gpio2/value
sleep 1
echo "Welcome"
echo "0" > /sys/class/gpio/gpio2/value

17
lock Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
#echo "Initializing Door Systems..."
#echo "2" > /sys/class/gpio/unexport
#echo "2" > /sys/class/gpio/export
#sleep 0.5
#echo "Securing Communication to Door Systems..."
#echo "out" > /sys/class/gpio/gpio2/direction
#sleep 0.5
#echo "Open Communication Channel..."
curl dooris.gnomus.de/lock
#echo "Opening Door..."
#echo "1" > /sys/class/gpio/gpio2/value
#sleep 1
#echo "Welcome"
#echo "0" > /sys/class/gpio/gpio2/value

17
unlock Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
#echo "Initializing Door Systems..."
#echo "2" > /sys/class/gpio/unexport
#echo "2" > /sys/class/gpio/export
#sleep 0.5
#echo "Securing Communication to Door Systems..."
#echo "out" > /sys/class/gpio/gpio2/direction
#sleep 0.5
#echo "Open Communication Channel..."
curl dooris.gnomus.de/unlock
#echo "Opening Door..."
#echo "1" > /sys/class/gpio/gpio2/value
#sleep 1
#echo "Welcome"
#echo "0" > /sys/class/gpio/gpio2/value