Integration with custom MQTT Broker

Hey folks, greetings from the Farset Labs Hackerspace in Northern Ireland

We previously had a stand alone emonpi installation that was ticking over nicely, however we’ve had a major renovation of the space that made sense for us to do a “rehash”, and one of the things we decided to do was to have a central MQTT broker for everything happening in the space.

Is there any instruction somewhere regarding how to get the emonpi to use an external broker rather than it’s internal one? Or to “double post” to both its internal broker and an external one?

Thanks

You need to edit the settings in the emonhub (which pushes the data) and the settings (ini or php) file (which reads the data).

Thanks @borpin for responding, but I found a simpler solution for what we were thinking of actually; MQTT Bridges: creating a conf.d/bridge.conf as below worked for our (currently public) setup.

#connection farset

connection bridge-fsl
address 192.168.1.222:1883

topic # out 0
1 Like

I’ve never played with bridges - glad you found a solution.

1 Like