Webinterface for switchable current bar

There is a nice tutorial from Matt Richardson about using Flask with an Raspberry Pi for controlling the GIO. I never used Flask before but I was able to create a nice webpage with some help of flask-bootstrap and flask-AppConfig.

current-web

There are three files needed: Script, HTML template, and configuration file. As you will see contains the script the brainwork of Matt.

The templates is basically a copy of the one I use for mqtt-panel.

The configuration file contains the all data of the relevant pins.

Let it run:

How the hardware part is waiting…

This entry was posted in General. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.