A Python script, running on a Raspberry Pi, which eats WebSocket events from Pusher and converts them into door openings.
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
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.