StreaMonitor icon indicating copy to clipboard operation
StreaMonitor copied to clipboard

How to call ZeroMQ

Open lolo1p19 opened this issue 3 months ago • 3 comments

I want to call StreaMonitor through my own program to perform related operations. I tried ZeroMQ but couldn't succeed

lolo1p19 avatar Sep 27 '25 14:09 lolo1p19

ZeroMQ just gives a "communication way". So it's relatively open what's communicated.

There is no real protocol defined. It's more or less string based by the commands of the CLI.

See this for a client example.

DerBunteBall avatar Sep 27 '25 14:09 DerBunteBall

ZeroMQ just gives a "communication way". So it's relatively open what's communicated.

There is no real protocol defined. It's more or less string based by the commands of the CLI.

See this for a client example.

Ok, I have succeeded. But when I pass the command, it will execute the command on all my StreaMonitors (I have multiple StreaMonitors running on different ports at the same time).

lolo1p19 avatar Sep 27 '25 14:09 lolo1p19

see this

The ZeroMQ Manager doesn't support a port switch by default. So the WebUI Port can be changed and it could be possible to solve this with Docker.

So I guess it depends how the ZeroMQ Library handles this. It might be possible that the Library is smart enough to recognize that a second application want's to use the socket and broadcasts input to all.

You could also simply implement a way to set the ZeroMQ port. This should solve the problem also.

DerBunteBall avatar Sep 27 '25 15:09 DerBunteBall