printer_bench
Help Kiln get to know your printer in a few minutes: a guided session, one ask at a time.
Instructions
Help Kiln get to know your printer in a few minutes: a guided session, one ask at a time.
Kiln judges where a second part can go on an occupied plate from a
record of how each printer moves its head on its own. Where that
record has a blank -- a pause, cancel or end nobody has described, a
head nobody has measured -- Kiln assumes the worst. This session
fills the blanks for THIS printer: it prints a coin-sized square,
pauses, resumes, cancels and ends it, and watches where the head goes.
A Klipper or Marlin printer says where its head is, so nothing about
the moves is asked; a closed-firmware printer is asked which numbered
zone the head stopped in (a picture is included) and about how high it
lifted. Numbers only ever leave the machine, and only while telemetry
is on. Runout is never tested.
Call it with no ``answer`` to start or resume. Every reply carries
``ask`` (one sentence -- relay it word for word), ``images`` (what each
picture is; the pictures themselves follow the reply as images, in the
same order -- show them), ``options`` when the answer is a choice, and ``waiting`` with
``check_again_in_seconds`` when Kiln is watching the print and there is
nothing to ask yet. Hand the person's answer back as ``answer``. The
test print is a real print: when the reply says so, show the file with
``visualize_model``, get a token with ``issue_preview_token`` and start
it with ``run_quick_print`` -- the normal approval dialog shows, once.
``restart=True`` throws the session away and begins again.
Args:
printer_name: Which printer. Omit for the default one.
answer: The person's answer to the previous ask, verbatim.
restart: Begin again from the first ask.
Returns the next ask, or ``done`` with what Kiln learned, the payoff
line, and what it still does not know.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | No | ||
| restart | No | Default: false. | |
| printer_name | No |