Skip to content

Auto-running calibration — parse K from a calibration print, log it #38

Description

@abe238

Today bambu cal log requires manual entry of pressure-advance / flow-ratio values. This issue automates the loop.

Implementation sketch:

  • Trigger a calibration print via bambulabs_api.calibrate_printer() (already in the lib's surface).
  • Subscribe to the report stream during the calibration; the printer publishes the computed K value once the test completes.
  • On detection, call bambu cal log <spool_id> --pa <K> automatically.
  • New subcommand: bambu cal run <spool_id> [--filament X] [--color Y] — fires the calibration, waits for the result, persists.

DoD: bambu cal run pla-black-roll-3 --filament 'PLA Basic' runs the calibration end-to-end and the resulting record appears in bambu cal list without manual entry. Existing manual bambu cal log still works.

Depends on: validating that calibrate_printer() in bambulabs_api 2.6.x actually returns / emits the K value (may need to parse the MQTT response payload).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions