Skip to content

Remote Streamdeck connector for bitfocus-companion

License

Notifications You must be signed in to change notification settings

maxks/companion-remote

 
 

Repository files navigation

Companion Remote

License Version

A small application to allow for connecting a streamdeck to Bitfocus Companion over a network.

Companion 2.1.2 and newer are supported

Each device will appear in companion as its own 'satellite' device, and so can be configured as if they are local.

Note: This connects over the satellite device api which uses port TCP 37133.

Running

Electron

This application can be built with electron to provide a minimal ui and to allow for minimising to the system tray. You can right click the tray icon to:

  • Set the ip address of the companion instance to connect to
  • Force a manual scan for devices. This is done automatically when a new device is detected, but it can sometimes miss some

To manually build the latest version for your machine:

  • yarn install
  • yarn dist
  • Locate the output under electron-output/

Headless

It can be built and run as a systemd service on a pi or other linux machine

To prepare the application, after cloning:

  • yarn install
  • yarn build

An example systemd unit (make sure to update the paths and companion ip as appropriate):

[Unit]
Description=Bitfocus Companion Remote
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi/companion-remote
ExecStart=node /home/pi/companion-remote/dist/main.js 192.168.0.1
Restart=on-failure
KillSignal=SIGINT
TimeoutStopSec=60

[Install]
WantedBy=multi-user.target

Development

NodeJS 12.16.3 and 14 are supported

Electron

  1. Install the dependencies yarn install
  2. Ensure the electron dependencies are installed yarn electron-rebuild
  3. Run it yarn dev-electron

You can package for electron with yarn dist.
Building for another platform has not been tested.

Headless

  1. If you are running this after either running in electron, or packaging for electron, it is best to remove the node_modules folder and rerun yarn install
  2. Run it yarn dev 127.0.0.1 substituting in your companion instance ip address

About

Remote Streamdeck connector for bitfocus-companion

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%