Skip to content

Satellite Streamdeck connector for Companion docker

License

Notifications You must be signed in to change notification settings

jsv93/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.

Satellite Getting Started

Getting started

You can find installers on the releases page

Raspberry Pi

A prebuilt image is provided for recent releases. Check the releases tab for the latest image.

After writing the image to an sd card, edit the satellite-config file in the boot partition to point to your companion instance.

Desktop

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/

Manual 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 16 is required

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 docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 85.9%
  • JavaScript 4.6%
  • HCL 3.8%
  • Shell 3.5%
  • Dockerfile 2.2%