From 67e907e3a46a974c63d1ca924125b19e4650da1f Mon Sep 17 00:00:00 2001 From: Jamalaka Date: Tue, 9 Dec 2014 22:08:32 +0100 Subject: [PATCH] API calls now nonblocking. --- dooropen | 1 + lock | 2 +- unlock | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dooropen b/dooropen index dde2552..04ddfdc 100755 --- a/dooropen +++ b/dooropen @@ -15,6 +15,7 @@ sleep 1 echo "Welcome" echo "0" > /sys/class/gpio/gpio17/value sleep 3 +echo "Aaand again" echo "1" > /sys/class/gpio/gpio17/value sleep 1 echo "0" > /sys/class/gpio/gpio17/value diff --git a/lock b/lock index 95282f6..8f9b06d 100755 --- a/lock +++ b/lock @@ -8,7 +8,7 @@ echo "Securing Communication to Space Systems..." echo "out" > /sys/class/gpio/gpio22/direction sleep 0.5 echo "Open Communication Channel..." -curl -s -o /dev/null "hamburg.ccc.de/dooris/status.php?apikey=sesamaenderdich&action=close" +curl -s -o /dev/null "hamburg.ccc.de/dooris/status.php?apikey=sesamaenderdich&action=close" & echo "Locking Space..." echo "1" > /sys/class/gpio/gpio22/value sleep 0.3 diff --git a/unlock b/unlock index 83f276f..83b7d4c 100755 --- a/unlock +++ b/unlock @@ -8,7 +8,7 @@ echo "Securing Communication to Space Systems..." echo "out" > /sys/class/gpio/gpio27/direction sleep 0.5 echo "Open Communication Channel..." -curl -s -o /dev/null "hamburg.ccc.de/dooris/status.php?apikey=sesamaenderdich&action=open" +curl -s -o /dev/null "hamburg.ccc.de/dooris/status.php?apikey=sesamaenderdich&action=open" & echo "Unlocking Space..." echo "1" > /sys/class/gpio/gpio27/value sleep 0.3