emergency_trip_input
Trigger a software emergency stop from external hardware inputs such as ESP32 or push buttons. Send an HTTP request with printer name and optional authorization token to halt operations.
Instructions
Trip emergency stop from an external hardware bridge.
Designed for physical input devices (ESP32, PLC, wired push buttons)
that call this endpoint over HTTP to trigger a software e-stop. This
is different from ``emergency_stop()`` which is for agent/software-
initiated stops.
If ``KILN_ESTOP_INPUT_TOKEN`` is configured, the request must include
a matching ``token`` or it will be rejected.
:param printer_name: Printer to emergency-stop.
:param input_name: Label for the input source (default
``"external_button"``).
:param token: Authorization token -- required when
``KILN_ESTOP_INPUT_TOKEN`` is set.
:param note: Optional free-text note describing the trigger reason.
See also: ``emergency_stop()``, ``emergency_status()``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| token | No | ||
| input_name | No | external_button | |
| printer_name | Yes |