Publish Emoncms input data to MQTT

I have my input data coming into emoncms via the HTTP api. However I am trying to publish any input data received by emoncms to an MQTT broker and I cannot seem to find the basic minimum steps I need to follow to just allow emoncms to Publish to MQTT.

Use the MQTT publish input process

image

This required quite a lot of steps to get going. But now my Publish to MQTT is finally working.

Firstly, I needed to get the PHP mqtt modules installed.
Then get the emoncms_mqtt service started. This threw an error because it expected a “multiuser” key within the mqtt array in the settings.php which mine didn’t have. So I just commented out the multiuser timezone check in the php file.

The assumption was a standard setup. If not, then yes a lot more work!