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).
Today
bambu cal logrequires manual entry of pressure-advance / flow-ratio values. This issue automates the loop.Implementation sketch:
bambulabs_api.calibrate_printer()(already in the lib's surface).bambu cal log <spool_id> --pa <K>automatically.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 inbambu cal listwithout manual entry. Existing manualbambu cal logstill 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).