From 33314ad2a56fd6eb497869be6b86997bdec1e94c Mon Sep 17 00:00:00 2001 From: Felix Favre Date: Fri, 6 Jun 2014 13:48:56 +0200 Subject: [PATCH] Initial commit with current scripts --- dooropen | 17 +++++++++++++++++ lock | 17 +++++++++++++++++ unlock | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 dooropen create mode 100644 lock create mode 100644 unlock diff --git a/dooropen b/dooropen new file mode 100644 index 0000000..17fe669 --- /dev/null +++ b/dooropen @@ -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 + diff --git a/lock b/lock new file mode 100644 index 0000000..1abca82 --- /dev/null +++ b/lock @@ -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 + diff --git a/unlock b/unlock new file mode 100644 index 0000000..7f7ec18 --- /dev/null +++ b/unlock @@ -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 +