no i was right
This commit is contained in:
parent
182951023e
commit
ab6ebb1a1a
1 changed files with 4 additions and 6 deletions
10
doormagic.sh
10
doormagic.sh
|
@ -5,13 +5,13 @@ if [ "$USER" == "open" ]; then
|
||||||
echo "Linking to DDR Mondbasis..."
|
echo "Linking to DDR Mondbasis..."
|
||||||
echo "Asking the party for permission to unlock door...."
|
echo "Asking the party for permission to unlock door...."
|
||||||
echo "Waiting for Faxmodem..."
|
echo "Waiting for Faxmodem..."
|
||||||
echo "Chanelling the force..."
|
echo "chanelling the force"
|
||||||
echo "Opening door..."
|
echo "Opening door..."
|
||||||
PIN=17 # pin 11
|
PIN=17 # pin
|
||||||
elif [ "$USER" == "close" ]; then
|
elif [ "$USER" == "close" ]; then
|
||||||
echo "Connecting to space systems..."
|
echo "Connecting to space systems..."
|
||||||
echo "Linking to DDR Mondbasis..."
|
echo "Linking to DDR Mondbasis..."
|
||||||
echo "Rickrolling folks on Mondbasis..."
|
echo "Rickrolling folks on mondbasis..."
|
||||||
echo "Locating Messlatte..."
|
echo "Locating Messlatte..."
|
||||||
echo "Closing door..."
|
echo "Closing door..."
|
||||||
PIN=22 # pin 15
|
PIN=22 # pin 15
|
||||||
|
@ -28,6 +28,4 @@ sleep 1
|
||||||
|
|
||||||
sudo raspi-gpio set $PIN dh
|
sudo raspi-gpio set $PIN dh
|
||||||
|
|
||||||
sudo raspi-gpio set $PIN dl
|
echo "Action completed on GPIO pin $PIN"
|
||||||
|
|
||||||
echo "Action completed on GPIO pin $PIN, set back to low."
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue