Files
rickyandClaude Opus 5.5 e5ca5b6980 Print agent for redmine_qbo_labels
Runs on the label printer's network, asks Redmine for labels every couple
of seconds (Bearer token from Administration » Label printers), draws them
like the print dialog's preview, and prints them on a Brother QL printer
over TCP 9100. Finds the printer on the network over Bonjour/mDNS (or
PRINTER), checks its status before each label and every minute, and
reports back printed or failed with the printer's error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 08:29:10 -05:00

17 lines
617 B
YAML

# Runs the print agent on a computer on the label printer's network.
# REDMINE_URL and AGENT_TOKEN come from Administration » Label printers in Redmine.
services:
label-agent:
build: .
restart: always
# Host networking lets the agent find the printer on the local network (Bonjour/mDNS)
network_mode: host
environment:
REDMINE_URL: https://redmine.example.com
AGENT_TOKEN: qbl_paste-the-token-here
PRINTER_MODEL: QL-820NWB
# Optional: skip the network search and use this printer
# PRINTER: tcp://192.168.0.100
# DEBUG, INFO or WARNING
LOG_LEVEL: INFO