Skip to content

sdclute/companion-satellite

 
 

Repository files navigation

Companion Satellite

License Version

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

Companion 2.2.0 and newer are supported

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

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

Getting started

You can find prebuilt installers on the releases page

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 / Raspbrry pi

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 Satellite
After=network-online.target
Wants=network-online.target

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

[Install]
WantedBy=multi-user.target

Development

NodeJS 14 and NodeJS 16 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

Satellite Streamdeck connector for Companion

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 94.9%
  • Dockerfile 4.1%
  • Other 1.0%