Spool Master
Language: English (Canada)

Install the companion with Docker

The companion is a small Docker container that runs at home on a machine that stays on, such as a NAS, a Raspberry Pi or a mini PC. It watches your printers while the app is closed. It is a Premium feature.

EngageEngine Published 5 min read

What the companion does

  • Sends notifications with the app closed: print finished, failed or paused, filament runout or low, printer unreachable
  • Updates print progress on the iPhone Lock Screen
  • Shows the live camera away from home over a direct connection. The video never goes through our servers
  • Lets you control the printer away from home. It is on as soon as the companion is paired, and you can turn it off in the app with the companion's Remote control switch, under Real-time notifications
  • Counts the filament of prints that end while the app is closed, on printers that keep no history

What you need

  • A machine that stays on, with Docker and Docker Compose
  • linux/amd64, linux/arm64 or linux/arm/v7 (Raspberry Pi included)
  • About 15 MB to download
  • Outgoing internet access. For the camera, UDP port 8555 (the companion can open it on your router by itself)

Install the companion with Docker

  1. Step 1

    Get the two files

    Download docker-compose.yml and config.example.yaml into a new folder.

    mkdir spoolmaster-relay && cd spoolmaster-relay
    curl -O https://engageengine.ch/spoolmaster/docker-compose.yml
    curl -O https://engageengine.ch/spoolmaster/config.example.yaml
  2. Step 2

    Describe your printers

    Edit data/config.yaml. Give each printer the same name as in the app and its IP address (not a .local name), plus the fields its brand needs.

    mkdir -p data
    cp config.example.yaml data/config.yaml
    nano data/config.yaml
  3. Step 3

    Start the container

    Give the data folder to the container's user, then start it.

    sudo chown -R 65532:65532 data
    docker compose up -d
  4. Step 4

    Create a pairing code in the app

    In the app: Workshop > Alerts > Real-time notifications > the companion. Tick the printers, then create a pairing code. It is valid for 10 minutes and works once.

  5. Step 5

    Pair the companion

    Run this command with your code.

    docker exec spoolmaster-relay spool_master_relay pair ABCD-EFGH

Fields per brand in config.yaml

Printer fields in the companion configuration
brandFields
klipperhost, port, api_key (if needed). Also for a Kobra with Rinkhals.
bambuhost, serial, access_code, developer_mode for control
prusahost, username and password, or api_key
octoprinthost, port, api_key
crealityhost
elegoohost. Centauri Carbon 2: port 1883 and access_code
anycubichost

Camera away from home

The camera goes over a direct connection (WebRTC) between your phone and the companion, on UDP port 8555. With port_mapping: auto, the companion opens this port on your router by itself (UPnP, PCP or NAT-PMP). Otherwise, forward it by hand.

The companion handles MJPEG cameras and Bambu Lab cameras (X1, P2S, H2 and P1, A1). Through the companion, the WebRTC camera of Creality printers is not supported yet; on your local network, the app shows it.

Questions

Does the camera video go through your servers?

No. The video goes over a direct connection between your phone and the companion. Our server only passes the network addresses needed to set it up, and erases them within 10 minutes.

Can I run it on a Raspberry Pi?

Yes. The image is built for linux/arm64 and linux/arm/v7 as well as linux/amd64.

Is remote control on by default?

Yes. Remote control is on as soon as a companion is paired. To turn it off, go to Workshop > Alerts > Real-time notifications > the companion in the app and switch off Remote control.

Get Spool Master

For iPhone and Android, in 35 languages. Free to download, Premium optional.