sonobus icon indicating copy to clipboard operation
sonobus copied to clipboard

Run SonoBus Headless?

Open carltesta opened this issue 3 years ago • 6 comments

I'm wondering if it's possible to run SonoBus headless via the command line and automatically connect to a specific group.

carltesta avatar Dec 06 '21 14:12 carltesta

Yes, the current version of SonoBus actually does have a very basic headless mode (-q) where you'll need to specify a setup file on the command line as well as a group to connect to. The idea is that you set up the config file ahead of time (using the GUI version) and save the setup from there (audio options, etc). Then start it up on your headless system using the command line options. See all the options with -h.

essej avatar Dec 06 '21 14:12 essej

Is there a guide on the setup file syntax? I'm trying to use multiple headless instances on embedded, so I need to pair each instance with a ALSA output card, in some way

I looked in the project for some docs, but I didn't find them

YuriVivaldi avatar Jan 27 '23 08:01 YuriVivaldi

It’s not really meant to be hand written… if you can run the standalone app with a UI on the system (or one just like it), you would set up all the audio (and other) options then use the Save Setup command from the first menu. Then you would specify the path to that setup file on the command line when running it in headless mode. At least then you’ll see what the setup file looks like and can find the audio interface part to try changing it if necessary.

essej avatar Jan 27 '23 13:01 essej

So it's not possible to dynamically add headless clients? Thats my goal, to create a network of listeners and to be able to configure them programmatically from a third manager/app, which I could build knowing the configuration syntax

YuriVivaldi avatar Jun 27 '23 09:06 YuriVivaldi

That's an awesome idea.

AtmanActive avatar Jun 27 '23 10:06 AtmanActive