raspberry Pi opening the front door and playing videos
 
 
Go to file
Gunstick 52457ea0cc doorbuzz now checks for ringing phone, so in future we can put animations
on the led ring if the pgone is active
it communicates with pidor over ssh to get space status and to
switch the flashing light
2015-05-11 00:25:31 +02:00
LICENSE Initial commit 2015-04-08 21:13:10 +02:00
README.txt doorbuzz now checks for ringing phone, so in future we can put animations 2015-05-11 00:25:31 +02:00
buzzctrl.sh changed from a normal RGB led to neopixel ws2812b 2015-05-02 01:58:10 +02:00
phone_notification_client.sh doorbuzz now checks for ringing phone, so in future we can put animations 2015-05-11 00:25:31 +02:00
setneocolor.py added button to clean shutdown the pi 2015-05-08 21:27:28 +02:00
shutdownbutton.py added button to clean shutdown the pi 2015-05-08 21:27:28 +02:00
spacestatus.py first commit based on running system 2015-04-08 22:16:20 +02:00
videoplayer.sh added button to clean shutdown the pi 2015-05-08 21:27:28 +02:00

README.txt

# doorbuzz
raspberry Pi opening the front door and playing videos
the button has an RGB led to show status

how to install
==============

sudo vi /etc/xdg/lxsession/LXDE/autostart
remove screensaver
sudo apt-get install unclutter xdotool git-core screen imagemagick
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build

mkdir -p /home/pi/.config/lxsession/LXDE/
cat > /home/pi/.config/lxsession/LXDE/autostart <<"EOF"
@xset s off
@xset -dpms
@xset s noblank
@unclutter -display :0 -noevents -grab
@./doorbuzz/buzzctrl.sh
@./doorbuzz/videoplayer.sh
@sudo python ./doorbuzz/shutdownbutton.py
@./doorbuzz/phone_notification_client.sh
EOF


connect the button and LED to pins as shown in buzzctrl.sh
create a file "secret.txt" containing the http://user:pass@10.1.1.xx part of the URL
adapt the URL in buzzctrl.sh
adapt spaceapi URL in spacestatus.py
put .mp4 videos into ~pi/ and they will show when your hackerspace is open
you can add videos and they will be taken into account automatically

when booting, the button led uses morsecode to send the low byte of the 
IP adress in decimal

phone_notification_client.sh communicates with pidor's doorbuzz_wrapper.sh
to command the flash light

todo
====
create a config file
put more of the hardcoded values from code into parameters
make code resilient against missing commands (e.g. gpio not in PATH)
move script to run in screen instead starting from rc.local