A simple one-page Flask application for controlling GPIO pins on RaspberryPi. It enables to change the state of each pin with toggle switches.
Running server on RaspberryPi:
- Create and activate virtualenv
- Install requirements
pip install -r requirements.txt- Set FLASK_APP to "flask_app"
export FLASK_APP="flask_app"- Run the server with sudo:
sudo python wsgi.pyOn client side:
Go to the server page: https://raspberrypi.local:5000
