Welcome to the 19th Raspberry Pi video! In this video, I show you how to set up Mosquitto MQTT as a broker on your Pi and test it via command line and MQTT Lens. I also show you how to set up a very simple Python script as a service that can monitor your MQTT broker for specific topics which will be very handy for automations.
Chapters:
0:00 Intro
1:03 Install Mosquitto
2:12 Testing MQTT from CLI
3:32 Testing MQTT Lens
4:55 A look at the Python Subscriber Script
6:40 Run The Python Subscriber
8:14 Testing Python Script
9:25 Setting up the Service
11:05 Testing the service
11:49 Conclusion
You can find all of the code on https://github.com/naztronaut/EP-MQTT
Please also see the following link at EasyProgramming.net for more information on the project itself: https://www.easyprogramming.net/raspb...
Prerequisite for this video is that you must be able to SSH into your Pi. For a quick guide, watch the first tutorial where I show you how to set up a headless pi: • Headless Raspberry Pi + Win a free RP...
I hope you enjoy the tutorial!
Have questions? Ask below or on EasyProgramming.net!
#RaspberryPi #MQTT #Mosquitto
-----------
Visit my website: https://www.easyprogramming.net
Subscribe on YouTube: / nazmusnasir
Support me on Patreon: / nazmus
Follow me on Twitter: / nazteroid
Like me on Facebook: / easyprogrammingnet
Check out my Github: https://github.com/naztronaut
Смотрите видео Raspberry Pi MQTT Set up with Python Subscriber as a Service онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Nazmus Nasir 22 Ноябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,98 раз и оно понравилось 5 людям.