A Python Flask web server to master some Raspberry PI components. This server expose some routes:
- GET
/lcd/display/<content>
to display a message on the LCD screen - GET
/led/blink
to make LED blink - GET
/sonar/run/<int:time>
to get distance on sonar during some time (response on "sonar" socket)
Also this use Socket.io & Flask-Socket.io to produce realtime stuffs. You can make theses SOCKET queries
sonar
to get distance (response onsonar
socket)
We use this kit to build the complete system. We use only:
- I2C LCD 1602 for display
FLASK_APP=app.py flask run --host=0.0.0.0
This will start a production server on http://localhost:5000