We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
We'll need PIP
sudo apt-get install python-pip
Then just install Flask:
pip install flask
See flask_server.py script for an example server.
flask_server.py
Importantly, your flask server should use run(host='0.0.0.0') (and optionally port=80) so it's accessible beyond the Pi!
run(host='0.0.0.0')
port=80
sudo python flask_server.py
The server is accessed at raspberrypi.local or using the Pi's IP directly.