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 ...

Get Python Programming with Raspberry Pi now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.