ola icon indicating copy to clipboard operation
ola copied to clipboard

Feature request: specify port for command-line tools

Open kengruven opened this issue 10 months ago • 1 comments

The olad daemon has flags to set the RPC port used by OLA. Unfortunately, (almost?) none of the included command-line programs provide a way to specify an alternative port.

For example, ola_streaming_client, ola_set_dmx, ola_dmxconsole, and ola_dmxmonitor all seem to use the RPC server (default port: 9010), but none of them provide a way to use an alternative port. Internally, the C++ client class supports it, but the command-line tool doesn't expose this to the user.

This isn't a big deal for normal usage -- I don't think I'd ever want to run multiple instances, or need to use a non-standard port for my only instance -- but today I'm doing some troubleshooting and it sure would be handy in this case.

kengruven avatar Feb 17 '25 23:02 kengruven

Yes, agreed. For some of the newer clients (not the stuff in ola-client.cpp) it's probably possible to do them en-mass by adding a flag somewhere common, in the same way as the log level stuff is done.

The biggest challenge will be coming up with a good flag to use given we've got ports in the OLA DMX sense too...

I think I've previously suggested running two copies actually for some edge-case issues (maybe Art-Net related?).

Pull requests definitely welcome for this one, and should be a good little starter for someone!

peternewman avatar Feb 23 '25 18:02 peternewman