bitfocus / companion

Bitfocus Companion enables the reasonably priced Elgato Stream Deck and other controllers to be a professional shotbox surface for an increasing amount of different presentation switchers, video playback software and broadcast equipment.
http://bitfocus.io/companion
Other
1.63k stars 505 forks source link

Command line switch to load a configuration file to companion on startup. #2408

Open buffos opened 1 year ago

buffos commented 1 year ago

Is this a feature relevant to companion itself, and not a module?

Is there an existing issue for this?

Describe the feature

We have different projects and different layouts. It would be nice to be able to load companion with a configuration file switch, that resets companion and loads that configuration.

I have search documentation and issues and have not found any mention of command line switches, hence this post

Usecases

As part of automation. Personally for every project, I have a script that launches the required programs. Then I have to load the corresponding layout to companion. It is a step that can be avoided, especially when you have to setup everything for someone else to work.

toomanybrians commented 1 year ago

+1 I would like this as well.

My usecase is we have a Raspberry Pi "appliance" we use to program firmware for some of our devices, which we control via a Stream Deck w/ Companion. Works great!

We keep these devices up to date via a GitHub repo, which they sync down. It would be nice if we could configure Companion to use the configuration file directly from the repo location, instead of needing to have a script to copy the file out.

This would also be helpful when we are designing updates to the button and layout config, in that we could make updates which are directly written to the repo, rather than needing a script to copy the configuration file into the rep.

joshperlman commented 1 year ago

Agreed this would be great. We are looking for more ways to automate our show deployment. If we could use a script to load a companion file that would be an awesome feature to build on top of

maverickmueller commented 1 year ago

I was able to do this by swapping in the db file for our new deployed version in the appdata folder via batch script. Not ideal, but does the job

rjmunro commented 4 months ago

I think you can set an environment variable COMPANION_CONFIG_BASEDIR to set folder where you keep config, so you could create a folder for each different configuration and use this.