estimate_print_progress
Estimate print completion time by splitting the job into phases and using historical outcome data. Reads live printer status when elapsed time or layer numbers are omitted.
Instructions
Estimate print progress with phase-aware time prediction.
Breaks a print into phases -- preparing, printing, cooling, and
post-processing -- and uses historical data from the print outcomes
database to estimate time remaining. Typically more accurate than
raw firmware estimates for predicting true completion time.
Supply ``elapsed_seconds``, ``total_layers``, and ``current_layer``
when available; any omitted values will be read from the printer's
live status.
:param printer_name: Printer running the job.
:param elapsed_seconds: Seconds elapsed since print start. Omit to
read from printer status.
:param total_layers: Total layer count for the job. Omit to read
from printer/G-code metadata.
:param current_layer: Current layer being printed. Omit to read
from printer status.
See also: ``printer_status()``, ``get_print_outcomes()``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| printer_name | Yes | ||
| total_layers | No | ||
| current_layer | No | ||
| elapsed_seconds | No |