Article Image
read

PubSub & The Events Problem

After I started to play more and more with IoT devices (see my last few blog posts), I realized that my communication lines were growing in complexity very rapidly. I had a few Devices talking directly to each other. IFTTT interfaced with my Google Home (Google Assistant), and that would call various functions and webhooks depending on what I said. I had various other scripts that could be triggered that were closer to Smart Automation (eg. if someone opens the door after sunset, then turn on the lights).

This led me to thinking about what a tangled web system I had made. On top of that, I really didn't have any way to see events as they were sent directly to the target, making it very hard to debug what happened.

Developing UbSub

After a while of this, I decided to search for a PubSub provider.. a packet router. I wanted somewhere to send my events, and be able to see them, and watch them as they routed. I googled around a bit, and couldn't find anything, so I decided to make something.

I created UbSub to help me solve this problem.

UbSub Event View

Simply put, you can send it an event and it will relay the event to any number of subscribers. It can be triggered via email, http, or socketio. And anything can subscribe to it via udp, socketio, http(s)-webhook, or emails. I'm slowly adding more ways to trigger and subscribe to topics.

It's very simple right now. Really just a glorified packet router with a decent interface that allows you to see where packets are going. I'm quite happy with it, as it's allowed me to gain insight into my IoT devices, and to more easily debug what's going on.

Blog Logo

Christopher LaPointe


Published

Interested in Related Posts from this Site?

Jenkinsfile Pipeline

December 20, 2017: # Jenkins Declarative Pipeline The `Jenkinsfile` (or rather, declarative pipelines in general) has been one...

Let's Encrypt

April 18, 2016: Let's Encrypt About 6 months ago, Lets Encrypt was brought to my attention as I...

SshSysMon

April 01, 2016: SshSysMon Ssh System Monitor (SshSysMon) is a system monitoring and alerting tool that operates purely...

Home-Assistant Doorbell

October 05, 2022: The end of this year I wanted to finally get a video doorbell that I...

Magic Mirror

January 02, 2019: # My Magic Mirror I had some time this holiday season and wanted to try...

Exploring Coding on Embedded Devices

January 31, 2018: # Exploring Coding on Embedded Devices Recently, I've been digging deep into developing cross-embedded-platform software...

RGB LED Light Strip Controller

September 02, 2017: Controlling an RGB Light Strip over WiFi I had one of those RGB light strips...

Cheap DIY Smart-Outlets

April 18, 2017: Creating Your Own Smart Outlets for Cheap I've started to spend a little time learning...

Image

Chris LaPointe

Another site of Code

Back to Overview