Lost My Doorbell - Client
April 15, 2015 ยท View on GitHub
A Python script, running on a Raspberry Pi, which eats WebSocket events from Pusher and converts them into door openings.
Getting Started
pip install https://github.com/ekulyk/PythonPusherClient/archive/master.zip(may requiresudo)PUSHER_KEY=XXX python poll.py
If you need to use sudo to run the script (which you almost definitely will), can add export PUSHER_KEY=XXX to your /etc/environment so it's available all over the place, then run the script with:
sudo -E python poll.py
Circuitry
You're going to need a relay sitting on GPIO pin 11 of your Raspberry Pi. This will be switched for 3 seconds whenever we get an event from Pusher.