Just an example of a web application for the Internet of things made with Python and Flask framework.
You could check the complete post about this example here.
Iván González, a.k.a dreamingechoes
- A Raspberry Pi with Raspbian loaded.
- Some sensors/leds/whatever to play with.
Here you have the schema of the things used on this example:
Be sure that your Raspberry Pi has the RPi.GPIO library installed:
pi@raspberrypi:~ $ apt-get update
pi@raspberrypi:~ $ apt-get install python-rpi.gpio python3-rpi.gpioor using pip:
pi@raspberrypi:~ $ pip install RPi.GPIOAnd then install Flask by executing:
pi@raspberrypi:~ $ pip install FlaskIn the user folder on your Raspberry Pi (or wherever you want), clone this repo:
pi@raspberrypi:~ $ git clone [email protected]:dreamingechoes/flask-internet-of-things-app.gitWired all the things properly, and then execute the web application by typing:
pi@raspberrypi:~/flask-internet-of-things-app $ python main.pyAnd then go to your web browser and enters the URL http://your-raspberrypi-ip:5000 you'll see what is going on.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Flask internet of things app is released under the MIT License.

