Does MQTT work?

Current Development version likely to have breaking changes
Post Reply
Dax
Posts: 6
Joined: Wed Jan 22, 2020 9:24 am

Does MQTT work?

Post by Dax »

Hi, I'm testing ZoneMinder 1.37 and the new features look very interesting to me but I can't get mqtt to work.
Does it work or am I wasting my time?
User avatar
iconnor
Posts: 3280
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Does MQTT work?

Post by iconnor »

Last I looked it worked, but you have to realise that I just roughed in the bare elements, hoping to enable someone else to quickly implement their desired feature. No one has yet to step up.

MQTT has two sides, ZM should broadcast the creation/ending of an event. That is the only message I implemented.
ZM can also subscribe to messages sent by external sources, again I have done nothing with this. The idea was to associate the message with the current event.
Dax
Posts: 6
Joined: Wed Jan 22, 2020 9:24 am

Re: Does MQTT work?

Post by Dax »

I just need a create/end event, that's exactly what I need but my broker doesn't receive anything and even using mqtt explorer I don't see anything happening.
User avatar
iconnor
Posts: 3280
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Does MQTT work?

Post by iconnor »

I suppose the next question would be.... is it even compiled into your build? It's an optional feature, so what distro are you running and where do yuou get packages from?

Maybe turn on Debugging.

Do you see the MQTT options when editing a monitor? Is it enabled?
Dax
Posts: 6
Joined: Wed Jan 22, 2020 9:24 am

Re: Does MQTT work?

Post by Dax »

Maybe that's the problem.
I installed following your youtube video "ZoneMinder 1.37.28 on Ubuntu Kinetic".
In the monitors I see "MQTT Enabled - Enabled" and "MQTT Subscriptions"
When debugging with the MQTT filter I only find:

Code: Select all

zms   4322   DB1   env: HTTP_COOKIE=zmSkin=classic; zmCSS=base; zmEventsTable.bs.table.hiddenColumns=["Archived","Emailed"]; zmEventsTable.bs.table.searchText=; zmEventsTable.bs.table.pageNumber=1; zmLogsTable.bs.table.pageNumber=1; zmLogsTable.bs.table.searchText=mqtt; ZMSESSID=d3o8ahqa0e42ub4qs7ep3ns2ei; zmEventStats=on; zmEventScale1=0; zmEventScale2=0; zmEventScale3=0; replayMode=gapless	
Post Reply