Getting IoT notifications on the Linux Desktop

If something important should happen with the IoT setup I’d like to know. I don’t want to spend my time on Earth checking up on machines though. I know, it’s less reliable, but I’d prefer to have the machines tell me when there’s a problem. I don’t want to be notified when things are going well.

I settled on using MQTT for device to device communications in my setup. It’s lightweight and I like the messaging model. So using it for notifications seems perfect.

Luckily the code for it was already written by David Lor. All I needed to do was create a service to run it in the background on my Linux Desktop. Here’s the script: mqtt2notifysend.sh

Linux Mint uses systemd so I used the instructions here: https://www.baeldung.com/linux/bash-daemon-script

I added a flow to my node-red setup to catch errors and send them via MQTT.

Thanks David! It works like a champ.

Leave a comment