estimate_print_progress
Predict print completion time by analyzing print phases and historical data. Provide elapsed time and layer counts for more accurate estimates than firmware-based predictions.
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 |