Script that shows if the Cube is open or not, by checking the status of a door sensor attached to the door to the club room. If the door is open, the site reports that the Cube is open.
Obtain a Raspberry Pi with a Debian OS installed.
sudo apt-get install python-dev python-rpi.gpio git
python3 -m pip install Flask
Set pin.DOOR_SENSOR_PIN
in door.py
to be the correct pin number.
python3 server.py