Control Circuits With Shelly Relays, MQTT, FlaskAPI, TKinter, Angular, and Raspberry Pi - Part One

Опубликовано: 10 Март 2026
на канале: Smarter Circuits
4,181
62

This is part one of the second episode of Smarter Circuits. The purpose of the episode is to demonstrate how to create an end-to-end smart circuit--that is a circuit you can control remotely or logically. The episode covers Shelly wifi relay wiring and configuration, MQTT server installation and setup, Flask API integration, TKinter touch interface, and a basic start to an Angular Single-Page Application.

For Shelly products on Amazon, click the following link:
https://amzn.to/3JhKe0O

Part Two -    • Control Circuits With Shelly Relays, MQTT,...   (available 9/6/2021)
Part Three -    • Control Circuits With Shelly Relays, MQTT,...   (available 9/13/2021)
A link to the third part of this video will be added when the video becomes available.
Code examples are available on the Smarter Circuits GitHub:
https://github.com/SmarterCircuits/Ep...

Follow us on Twitter @CircuitsSmarter
and if you're interested in supporting the growth and improvement of the channel, join us on Patreon:
  / smartercircuits  

Information:
Fing Network Scanner - https://www.fing.com/
MQTT Explorer - http://mqtt-explorer.com/
MQTT Configuration - https://mosquitto.org/man/mosquitto-c...
Setting up the Raspberry Pi - https://www.raspberrypi.org/help/quic...
Flask API, Apache2, Gunicorn service -   / build-a-simple-python-rest-api-with-apache...  
Paho MQTT - https://www.eclipse.org/paho/index.ph...

Note:
At 14:11, there is a small code error. The line that reads
return 'OK'
should be
return {"status":"OK"}