CUB-117: Port Moonraker + MQTT printer integrations to Go #47

Open
Dex wants to merge 2 commits from agent/dex/CUB-117-moonraker-mqtt-go into dev
Owner

Implements Moonraker REST/WebSocket clients, MQTT client (paho), background poller and subscriber workers, and wires them into the Go backend server.

Files added:

  • internal/clients/moonraker.go — Moonraker REST client
  • internal/clients/moonraker_ws.go — Moonraker WebSocket client with auto-reconnect
  • internal/clients/mqtt.go — MQTT client with TLS support
  • internal/workers/moonraker_poller.go — Background poller with usage logging
  • internal/workers/mqtt_subscriber.go — MQTT subscriber for Bambu telemetry

Files modified:

  • internal/config/config.go — Added Moonraker/MQTT env vars
  • cmd/server/main.go — Per-printer worker discovery and graceful shutdown

Validation:

  • go build ./... → PASS
  • go vet ./... → PASS
  • go test ./... → PASS
Implements Moonraker REST/WebSocket clients, MQTT client (paho), background poller and subscriber workers, and wires them into the Go backend server. **Files added:** - `internal/clients/moonraker.go` — Moonraker REST client - `internal/clients/moonraker_ws.go` — Moonraker WebSocket client with auto-reconnect - `internal/clients/mqtt.go` — MQTT client with TLS support - `internal/workers/moonraker_poller.go` — Background poller with usage logging - `internal/workers/mqtt_subscriber.go` — MQTT subscriber for Bambu telemetry **Files modified:** - `internal/config/config.go` — Added Moonraker/MQTT env vars - `cmd/server/main.go` — Per-printer worker discovery and graceful shutdown **Validation:** - `go build ./...` → PASS ✅ - `go vet ./...` → PASS ✅ - `go test ./...` → PASS ✅
Dex added 1 commit 2026-05-12 11:20:52 -04:00
CUB-117: Port Moonraker + MQTT printer integrations to Go
All checks were successful
Dev Build / build-test (pull_request) Successful in 1m29s
38722e54e6
- Moonraker REST client with GetPrinterInfo, GetPrintStats, GetPrintHistory
- Moonraker WebSocket client with auto-reconnect + telemetry parsing
- MQTT client via paho.mqtt.golang with TLS support for Bambu Lab
- Moonraker poller worker: background polling, dedup, usage logging to PostgreSQL
- MQTT subscriber worker: Bambu telemetry parsing, print job tracking
- Config: 7 new env vars (MOONRAKER_URL, MQTT_BROKER, etc.)
- main.go: per-printer worker discovery, graceful shutdown
Otto requested review from Otto 2026-05-12 15:55:09 -04:00
Otto reviewed 2026-05-12 15:55:09 -04:00
Otto left a comment
Owner

Approved by Otto — all checks pass.

Approved by Otto — all checks pass.
overseer added 1 commit 2026-05-15 11:01:01 -04:00
Merge branch 'dev' into agent/dex/CUB-117-moonraker-mqtt-go
All checks were successful
Dev Build / build-test (pull_request) Successful in 1m25s
0b0db45499
overseer scheduled this pull request to auto merge when all checks succeed 2026-05-15 11:01:07 -04:00
All checks were successful
Dev Build / build-test (pull_request) Successful in 1m25s
This pull request doesn't have enough required approvals yet. 0 of 1 approvals granted from users or teams on the allowlist.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent/dex/CUB-117-moonraker-mqtt-go:agent/dex/CUB-117-moonraker-mqtt-go
git checkout agent/dex/CUB-117-moonraker-mqtt-go
Sign in to join this conversation.
No Reviewers
No Label
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CubeCraft-Creations/Extrudex#47