Skip to content

OctoPrint-BambuCam

Live MJPEG camera stream from Bambu Lab printers — inside OctoPrint.

License OctoPrint Python

What this site is

This is the developer and API documentation for the plugin. For installation and end-user instructions, see the project README.

What it does

For the live stream, BambuCam bundles and supervises a small MJPEG HTTP server (webcamd-bambu, bambu branch) that connects to a Bambu Lab printer's camera port (TCP 6000, TLS). Its other features talk to the printer directly: SD-card timelapse management over FTPS (TCP 990), and light control through OctoPrint-BambuConnector's connection (falling back to its own MQTT on TCP 8883). Everything is exposed to OctoPrint through the standard webcam, settings, template, asset, event-handler and simple-API mixins.

Highlights

  • Live MJPEG stream of P1P / P1S / A1 / A1 mini cameras in OctoPrint.
  • Auto-managed daemon — starts after boot, restarts on crash with backoff, reconfigures on settings change, and rides out a powered-off printer.
  • SD-card timelapse manager — list, copy, move, delete over FTPS, with thumbnails and automatic .avi → .mp4 conversion.
  • Auto-sync — pull a print's new timelapse automatically once idle.
  • Raw Files render pipeline — harvest the printer's raw high-res /ipcam chunks per print (stoppable mid-pull) and concat + render them to .mp4 with quality presets, queued and idle-gated.
  • Light toggle & auto-config via OctoPrint-BambuConnector.
  • Security hardened — access code never logged or exposed; printer TLS floored at 1.2; privileged actions permission-gated; loopback-only snapshots.

Supported printers

Series Supported Notes
P1P / P1S ✅ LAN mode, access code required
A1 / A1 mini ✅ LAN mode, access code required
X1 / X1C ❌ Uses RTSPS (port 322), different protocol

Documentation map

  • Getting started — clone, install, run the dev stack.
  • Architecture — how the plugin and daemon fit together.
  • API — auto-generated Python and JavaScript references.
  • Frontend — UI placements and i18n.
  • Security — threat model and hardening.
  • Development — contributing, testing, building these docs, releases.
  • Reference — settings keys and the HTTP API.