O'Reilly logo

Python Programming with Raspberry Pi by Srihari Yamanoor, Sai Yamanoor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Web framework based appliance control/dashboard

In this section, we will review building a dashboard in order to control appliances. This could be a dashboard for the aquarium where you would like to monitor all the requisite parameters for the tank or a dashboard for the garden where you can control the flow control valves for your garden based on information from the sensors. We will demonstrate this with a simple example and show how you can use it to meet your requirements.

We will make use of the flask framework to build our dashboard. If you haven't installed the flask framework (from the previous chapters), you can install it as follows:

sudo pip3 install flask

If you are not familiar with the flask framework, we have written up ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required