Simple sample of events from two buttons with Raspberry pi. Each connected client, will be notify about events (websocketIO)
From project root create virtual environment, activate and install requirements:
~/button_pi$ python3 -m venv venv
~/button_pi$ source venv/bin/activate
~/button_pi$ pip install -r requirements.txt
as app
export FLASK_APP=flaskr
flask run
as wsgi server
gunicorn --worker-class eventlet -w 1 -b localhost:8080 wsgi
As seen above (gunicorn...)
Franco Parodi
This project is licensed under the MIT License