| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | # Status reference
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-28 21:02:14 -04:00
										 |  |  | This document is a reference of printer status information available | 
					
						
							|  |  |  | in Klipper [macros](Command_Templates.md), | 
					
						
							| 
									
										
										
										
											2021-05-28 20:58:32 -04:00
										 |  |  | [display fields](Config_Reference.md#display), and via the | 
					
						
							|  |  |  | [API Server](API_Server.md). | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The fields in this document are subject to change - if using an | 
					
						
							| 
									
										
										
										
											2021-05-28 20:58:32 -04:00
										 |  |  | attribute be sure to review the | 
					
						
							|  |  |  | [Config Changes document](Config_Changes.md) when upgrading the | 
					
						
							|  |  |  | Klipper software. | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-19 19:28:00 -04:00
										 |  |  | ## angle
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available in | 
					
						
							|  |  |  | [angle some_name](Config_Reference.md#angle) objects: | 
					
						
							|  |  |  | - `temperature`: The last temperature reading (in Celsius) from a | 
					
						
							|  |  |  |   tle5012b magnetic hall sensor. This value is only available if the | 
					
						
							|  |  |  |   angle sensor is a tle5012b chip and if measurements are in progress | 
					
						
							|  |  |  |   (otherwise it reports `None`). | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## bed_mesh
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [bed_mesh](Config_Reference.md#bed_mesh) object: | 
					
						
							|  |  |  | - `profile_name`, `mesh_min`, `mesh_max`, `probed_matrix`, | 
					
						
							|  |  |  |   `mesh_matrix`: Information on the currently active bed_mesh. | 
					
						
							| 
									
										
										
										
											2022-02-15 20:58:47 +01:00
										 |  |  | - `profiles`: The set of currently defined profiles as setup | 
					
						
							|  |  |  |    using BED_MESH_PROFILE. | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-25 16:49:21 +01:00
										 |  |  | ## bed_screws
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | `Config_Reference.md#bed_screws` object: | 
					
						
							|  |  |  | - `is_active`: Returns True if the bed screws adjustment tool is currently | 
					
						
							|  |  |  | active. | 
					
						
							|  |  |  | - `state`: The bed screws adjustment tool state. It is one of | 
					
						
							|  |  |  | the following strings: "adjust", "fine". | 
					
						
							|  |  |  | - `current_screw`: The index for the current screw being adjusted. | 
					
						
							|  |  |  | - `accepted_screws`: The number of accepted screws. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## configfile
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `configfile` object | 
					
						
							|  |  |  | (this object is always available): | 
					
						
							|  |  |  | - `settings.<section>.<option>`: Returns the given config file setting | 
					
						
							|  |  |  |   (or default value) during the last software start or restart. (Any | 
					
						
							|  |  |  |   settings changed at run-time will not be reflected here.) | 
					
						
							|  |  |  | - `config.<section>.<option>`: Returns the given raw config file | 
					
						
							|  |  |  |   setting as read by Klipper during the last software start or | 
					
						
							|  |  |  |   restart. (Any settings changed at run-time will not be reflected | 
					
						
							|  |  |  |   here.) All values are returned as strings. | 
					
						
							| 
									
										
										
										
											2021-09-04 14:20:24 -04:00
										 |  |  | - `save_config_pending`: Returns true if there are updates that a | 
					
						
							|  |  |  |   `SAVE_CONFIG` command may persist to disk. | 
					
						
							| 
									
										
										
										
											2022-06-20 18:10:57 +02:00
										 |  |  | - `save_config_pending_items`: Contains the sections and options that | 
					
						
							|  |  |  |   were changed and would be persisted by a `SAVE_CONFIG`. | 
					
						
							| 
									
										
										
										
											2021-09-04 14:20:24 -04:00
										 |  |  | - `warnings`: A list of warnings about config options. Each entry in | 
					
						
							|  |  |  |   the list will be a dictionary containing a `type` and `message` | 
					
						
							|  |  |  |   field (both strings). Additional fields may be available depending | 
					
						
							|  |  |  |   on the type of warning. | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## display_status
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `display_status` object | 
					
						
							|  |  |  | (this object is automatically available if a | 
					
						
							|  |  |  | [display](Config_Reference.md#display) config section is defined): | 
					
						
							|  |  |  | - `progress`: The progress value of the last `M73` G-Code command (or | 
					
						
							|  |  |  |   `virtual_sdcard.progress` if no recent `M73` received). | 
					
						
							|  |  |  | - `message`: The message contained in the last `M117` G-Code command. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## endstop_phase
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:49:37 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [endstop_phase](Config_Reference.md#endstop_phase) object: | 
					
						
							|  |  |  | - `last_home.<stepper name>.phase`: The phase of the stepper motor at | 
					
						
							|  |  |  |   the end of the last home attempt. | 
					
						
							|  |  |  | - `last_home.<stepper name>.phases`: The total number of phases | 
					
						
							|  |  |  |   available on the stepper motor. | 
					
						
							|  |  |  | - `last_home.<stepper name>.mcu_position`: The position (as tracked by | 
					
						
							|  |  |  |   the micro-controller) of the stepper motor at the end of the last | 
					
						
							|  |  |  |   home attempt. The position is the total number of steps taken in a | 
					
						
							|  |  |  |   forward direction minus the total number of steps taken in the | 
					
						
							|  |  |  |   reverse direction since the micro-controller was last restarted. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-01 13:12:35 -07:00
										 |  |  | ## exclude_object
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [exclude_object](Exclude_Object.md) object: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | - `objects`:  An array of the known objects as provided by the | 
					
						
							|  |  |  |   `EXCLUDE_OBJECT_DEFINE` command.  This is the same information provided by | 
					
						
							|  |  |  |   the `EXCLUDE_OBJECT VERBOSE=1` command. The `center` and `polygon` fields will | 
					
						
							|  |  |  |   only be present if provided in the original `EXCLUDE_OBJECT_DEFINE` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Here is a JSON sample: | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | [ | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     "polygon": [ | 
					
						
							|  |  |  |       [ 156.25, 146.2511675 ], | 
					
						
							|  |  |  |       [ 156.25, 153.7488325 ], | 
					
						
							|  |  |  |       [ 163.75, 153.7488325 ], | 
					
						
							|  |  |  |       [ 163.75, 146.2511675 ] | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |     "name": "CYLINDER_2_STL_ID_2_COPY_0", | 
					
						
							|  |  |  |     "center": [ 160, 150 ] | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     "polygon": [ | 
					
						
							|  |  |  |       [ 146.25, 146.2511675 ], | 
					
						
							|  |  |  |       [ 146.25, 153.7488325 ], | 
					
						
							|  |  |  |       [ 153.75, 153.7488325 ], | 
					
						
							|  |  |  |       [ 153.75, 146.2511675 ] | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |     "name": "CYLINDER_2_STL_ID_1_COPY_0", | 
					
						
							|  |  |  |     "center": [ 150, 150 ] | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | ] | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | - `excluded_objects`: An array of strings listing the names of excluded objects. | 
					
						
							|  |  |  | - `current_object`: The name of the object currently being printed. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-26 01:40:03 +02:00
										 |  |  | ## extruder_stepper
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available for extruder_stepper objects (as well as | 
					
						
							|  |  |  | [extruder](Config_Reference.md#extruder) objects): | 
					
						
							|  |  |  | - `pressure_advance`: The current [pressure advance](Pressure_Advance.md) value. | 
					
						
							|  |  |  | - `smooth_time`: The current pressure advance smooth time. | 
					
						
							| 
									
										
										
										
											2023-02-04 15:27:51 +00:00
										 |  |  | - `motion_queue`: The name of the extruder that this extruder stepper is | 
					
						
							|  |  |  |   currently synchronized to.  This is reported as `None` if the extruder stepper | 
					
						
							|  |  |  |   is not currently associated with an extruder. | 
					
						
							| 
									
										
										
										
											2022-08-26 01:40:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## fan
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in | 
					
						
							| 
									
										
										
										
											2021-04-28 20:38:07 -04:00
										 |  |  | [fan](Config_Reference.md#fan), | 
					
						
							|  |  |  | [heater_fan some_name](Config_Reference.md#heater_fan) and | 
					
						
							|  |  |  | [controller_fan some_name](Config_Reference.md#controller_fan) | 
					
						
							|  |  |  | objects: | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `speed`: The fan speed as a float between 0.0 and 1.0. | 
					
						
							|  |  |  | - `rpm`: The measured fan speed in rotations per minute if the fan has | 
					
						
							|  |  |  |   a tachometer_pin defined. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## filament_switch_sensor
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:38:07 -04:00
										 |  |  | The following information is available in | 
					
						
							|  |  |  | [filament_switch_sensor some_name](Config_Reference.md#filament_switch_sensor) | 
					
						
							|  |  |  | objects: | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `enabled`: Returns True if the switch sensor is currently enabled. | 
					
						
							|  |  |  | - `filament_detected`: Returns True if the sensor is in a triggered | 
					
						
							|  |  |  |   state. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## filament_motion_sensor
 | 
					
						
							| 
									
										
										
										
											2021-05-11 19:17:22 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in | 
					
						
							|  |  |  | [filament_motion_sensor some_name](Config_Reference.md#filament_motion_sensor) | 
					
						
							|  |  |  | objects: | 
					
						
							|  |  |  | - `enabled`: Returns True if the motion sensor is currently enabled. | 
					
						
							|  |  |  | - `filament_detected`: Returns True if the sensor is in a triggered | 
					
						
							|  |  |  |   state. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## firmware_retraction
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [firmware_retraction](Config_Reference.md#firmware_retraction) object: | 
					
						
							|  |  |  | - `retract_length`, `retract_speed`, `unretract_extra_length`, | 
					
						
							|  |  |  |   `unretract_speed`: The current settings for the firmware_retraction | 
					
						
							|  |  |  |   module. These settings may differ from the config file if a | 
					
						
							|  |  |  |   `SET_RETRACTION` command alters them. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## gcode_macro
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:38:07 -04:00
										 |  |  | The following information is available in | 
					
						
							|  |  |  | [gcode_macro some_name](Config_Reference.md#gcode_macro) objects: | 
					
						
							|  |  |  | - `<variable>`: The current value of a | 
					
						
							|  |  |  |   [gcode_macro variable](Command_Templates.md#variables). | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## gcode_move
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `gcode_move` object | 
					
						
							|  |  |  | (this object is always available): | 
					
						
							|  |  |  | - `gcode_position`: The current position of the toolhead relative to | 
					
						
							|  |  |  |   the current G-Code origin. That is, positions that one might | 
					
						
							|  |  |  |   directly send to a `G1` command. It is possible to access the x, y, | 
					
						
							|  |  |  |   z, and e components of this position (eg, `gcode_position.x`). | 
					
						
							|  |  |  | - `position`: The last commanded position of the toolhead using the | 
					
						
							|  |  |  |   coordinate system specified in the config file. It is possible to | 
					
						
							|  |  |  |   access the x, y, z, and e components of this position (eg, | 
					
						
							|  |  |  |   `position.x`). | 
					
						
							|  |  |  | - `homing_origin`: The origin of the gcode coordinate system (relative | 
					
						
							|  |  |  |   to the coordinate system specified in the config file) to use after | 
					
						
							|  |  |  |   a `G28` command. The `SET_GCODE_OFFSET` command can alter this | 
					
						
							|  |  |  |   position. It is possible to access the x, y, and z components of | 
					
						
							|  |  |  |   this position (eg, `homing_origin.x`). | 
					
						
							|  |  |  | - `speed`: The last speed set in a `G1` command (in mm/s). | 
					
						
							|  |  |  | - `speed_factor`: The "speed factor override" as set by an `M220` | 
					
						
							|  |  |  |   command. This is a floating point value such that 1.0 means no | 
					
						
							|  |  |  |   override and, for example, 2.0 would double requested speed. | 
					
						
							|  |  |  | - `extrude_factor`: The "extrude factor override" as set by an `M221` | 
					
						
							|  |  |  |   command. This is a floating point value such that 1.0 means no | 
					
						
							|  |  |  |   override and, for example, 2.0 would double requested extrusions. | 
					
						
							|  |  |  | - `absolute_coordinates`: This returns True if in `G90` absolute | 
					
						
							|  |  |  |   coordinate mode or False if in `G91` relative mode. | 
					
						
							|  |  |  | - `absolute_extrude`: This returns True if in `M82` absolute extrude | 
					
						
							|  |  |  |   mode or False if in `M83` relative mode. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## hall_filament_width_sensor
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [hall_filament_width_sensor](Config_Reference.md#hall_filament_width_sensor) | 
					
						
							|  |  |  | object: | 
					
						
							|  |  |  | - `is_active`: Returns True if the sensor is currently active. | 
					
						
							| 
									
										
										
										
											2021-12-27 09:41:31 -08:00
										 |  |  | - `Diameter`: The last reading from the sensor in mm. | 
					
						
							|  |  |  | - `Raw`: The last raw ADC reading from the sensor. | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## heater
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available for heater objects such as | 
					
						
							|  |  |  | [extruder](Config_Reference.md#extruder), | 
					
						
							|  |  |  | [heater_bed](Config_Reference.md#heater_bed), and | 
					
						
							|  |  |  | [heater_generic](Config_Reference.md#heater_generic): | 
					
						
							|  |  |  | - `temperature`: The last reported temperature (in Celsius as a float) | 
					
						
							|  |  |  |   for the given heater. | 
					
						
							|  |  |  | - `target`: The current target temperature (in Celsius as a float) for | 
					
						
							|  |  |  |   the given heater. | 
					
						
							|  |  |  | - `power`: The last setting of the PWM pin (a value between 0.0 and | 
					
						
							|  |  |  |   1.0) associated with the heater. | 
					
						
							| 
									
										
										
										
											2021-06-08 10:39:55 +00:00
										 |  |  | - `can_extrude`: If extruder can extrude (defined by `min_extrude_temp`), | 
					
						
							|  |  |  |   available only for [extruder](Config_Reference.md#extruder) | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## heaters
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `heaters` object (this | 
					
						
							|  |  |  | object is available if any heater is defined): | 
					
						
							|  |  |  | - `available_heaters`: Returns a list of all currently available | 
					
						
							|  |  |  |   heaters by their full config section names, e.g. `["extruder", | 
					
						
							|  |  |  |   "heater_bed", "heater_generic my_custom_heater"]`. | 
					
						
							|  |  |  | - `available_sensors`: Returns a list of all currently available | 
					
						
							|  |  |  |   temperature sensors by their full config section names, | 
					
						
							|  |  |  |   e.g. `["extruder", "heater_bed", "heater_generic my_custom_heater", | 
					
						
							|  |  |  |   "temperature_sensor electronics_temp"]`. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## idle_timeout
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [idle_timeout](Config_Reference.md#idle_timeout) object (this object | 
					
						
							|  |  |  | is always available): | 
					
						
							|  |  |  | - `state`: The current state of the printer as tracked by the | 
					
						
							|  |  |  |   idle_timeout module. It is one of the following strings: "Idle", | 
					
						
							|  |  |  |   "Printing", "Ready". | 
					
						
							|  |  |  | - `printing_time`: The amount of time (in seconds) the printer has | 
					
						
							|  |  |  |   been in the "Printing" state (as tracked by the idle_timeout | 
					
						
							|  |  |  |   module). | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-23 15:55:56 -04:00
										 |  |  | ## led
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available for each `[led led_name]`, | 
					
						
							|  |  |  | `[neopixel led_name]`, `[dotstar led_name]`, `[pca9533 led_name]`, and | 
					
						
							|  |  |  | `[pca9632 led_name]` config section defined in printer.cfg: | 
					
						
							|  |  |  | - `color_data`: A list of color lists containing the RGBW values for a | 
					
						
							|  |  |  |   led in the chain. Each value is represented as a float from 0.0 to | 
					
						
							|  |  |  |   1.0. Each color list contains 4 items (red, green, blue, white) even | 
					
						
							|  |  |  |   if the underyling LED supports fewer color channels. For example, | 
					
						
							|  |  |  |   the blue value (3rd item in color list) of the second neopixel in a | 
					
						
							|  |  |  |   chain could be accessed at | 
					
						
							|  |  |  |   `printer["neopixel <config_name>"].color_data[1][2]`. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-20 13:06:09 +01:00
										 |  |  | ## manual_probe
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | `manual_probe` object: | 
					
						
							|  |  |  | - `is_active`: Returns True if a manual probing helper script is currently | 
					
						
							|  |  |  | active. | 
					
						
							|  |  |  | - `z_position`: The current height of the nozzle (as the printer currently | 
					
						
							|  |  |  | understands it). | 
					
						
							|  |  |  | - `z_position_lower`: Last probe attempt just lower than the current height. | 
					
						
							|  |  |  | - `z_position_upper`: Last probe attempt just greater than the current height. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## mcu
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in | 
					
						
							| 
									
										
										
										
											2021-04-28 20:38:07 -04:00
										 |  |  | [mcu](Config_Reference.md#mcu) and | 
					
						
							|  |  |  | [mcu some_name](Config_Reference.md#mcu-my_extra_mcu) objects: | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `mcu_version`: The Klipper code version reported by the | 
					
						
							|  |  |  |   micro-controller. | 
					
						
							|  |  |  | - `mcu_build_versions`: Information on the build tools used to | 
					
						
							|  |  |  |   generate the micro-controller code (as reported by the | 
					
						
							|  |  |  |   micro-controller). | 
					
						
							|  |  |  | - `mcu_constants.<constant_name>`: Compile time constants reported by | 
					
						
							|  |  |  |   the micro-controller. The available constants may differ between | 
					
						
							|  |  |  |   micro-controller architectures and with each code revision. | 
					
						
							|  |  |  | - `last_stats.<statistics_name>`: Statistics information on the | 
					
						
							|  |  |  |   micro-controller connection. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-19 22:28:40 -04:00
										 |  |  | ## motion_report
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `motion_report` object | 
					
						
							|  |  |  | (this object is automatically available if any stepper config section | 
					
						
							|  |  |  | is defined): | 
					
						
							|  |  |  | - `live_position`: The requested toolhead position interpolated to the | 
					
						
							|  |  |  |   current time. | 
					
						
							|  |  |  | - `live_velocity`: The requested toolhead velocity (in mm/s) at the | 
					
						
							|  |  |  |   current time. | 
					
						
							|  |  |  | - `live_extruder_velocity`: The requested extruder velocity (in mm/s) | 
					
						
							|  |  |  |   at the current time. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## output_pin
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:38:07 -04:00
										 |  |  | The following information is available in | 
					
						
							|  |  |  | [output_pin some_name](Config_Reference.md#output_pin) objects: | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `value`: The "value" of the pin, as set by a `SET_PIN` command. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## palette2
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [palette2](Config_Reference.md#palette2) object: | 
					
						
							|  |  |  | - `ping`: Amount of the last reported Palette 2 ping in percent. | 
					
						
							|  |  |  | - `remaining_load_length`: When starting a Palette 2 print, this will | 
					
						
							|  |  |  |   be the amount of filament to load into the extruder. | 
					
						
							|  |  |  | - `is_splicing`: True when the Palette 2 is splicing filament. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## pause_resume
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [pause_resume](Config_Reference.md#pause_resume) object: | 
					
						
							|  |  |  | - `is_paused`: Returns true if a PAUSE command has been executed | 
					
						
							|  |  |  |   without a corresponding RESUME. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## print_stats
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `print_stats` object | 
					
						
							|  |  |  | (this object is automatically available if a | 
					
						
							|  |  |  | [virtual_sdcard](Config_Reference.md#virtual_sdcard) config section is | 
					
						
							|  |  |  | defined): | 
					
						
							|  |  |  | - `filename`, `total_duration`, `print_duration`, `filament_used`, | 
					
						
							| 
									
										
										
										
											2022-10-05 21:02:28 +02:00
										 |  |  |   `state`, `message`: Estimated information about the current print when a | 
					
						
							|  |  |  |   virtual_sdcard print is active. | 
					
						
							|  |  |  | - `info.total_layer`: The total layer value of the last `SET_PRINT_STATS_INFO | 
					
						
							|  |  |  |    TOTAL_LAYER=<value>` G-Code command. | 
					
						
							|  |  |  | - `info.current_layer`: The current layer value of the last | 
					
						
							|  |  |  |   `SET_PRINT_STATS_INFO CURRENT_LAYER=<value>` G-Code command. | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## probe
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [probe](Config_Reference.md#probe) object (this object is also | 
					
						
							|  |  |  | available if a [bltouch](Config_Reference.md#bltouch) config section | 
					
						
							|  |  |  | is defined): | 
					
						
							| 
									
										
										
										
											2023-03-03 09:46:36 +00:00
										 |  |  | - `name`: Returns the name of the probe in use. | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `last_query`: Returns True if the probe was reported as "triggered" | 
					
						
							|  |  |  |   during the last QUERY_PROBE command. Note, if this is used in a | 
					
						
							|  |  |  |   macro, due to the order of template expansion, the QUERY_PROBE | 
					
						
							|  |  |  |   command must be run prior to the macro containing this reference. | 
					
						
							|  |  |  | - `last_z_result`: Returns the Z result value of the last PROBE | 
					
						
							|  |  |  |   command. Note, if this is used in a macro, due to the order of | 
					
						
							|  |  |  |   template expansion, the PROBE (or similar) command must be run prior | 
					
						
							|  |  |  |   to the macro containing this reference. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## quad_gantry_level
 | 
					
						
							| 
									
										
										
										
											2021-06-02 09:11:19 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `quad_gantry_level` object | 
					
						
							|  |  |  | (this object is available if quad_gantry_level is defined): | 
					
						
							|  |  |  | - `applied`: True if the gantry leveling process has been run and completed | 
					
						
							|  |  |  |   successfully. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## query_endstops
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `query_endstops` object | 
					
						
							|  |  |  | (this object is available if any endstop is defined): | 
					
						
							|  |  |  | - `last_query["<endstop>"]`: Returns True if the given endstop was | 
					
						
							|  |  |  |   reported as "triggered" during the last QUERY_ENDSTOP command. Note, | 
					
						
							|  |  |  |   if this is used in a macro, due to the order of template expansion, | 
					
						
							|  |  |  |   the QUERY_ENDSTOP command must be run prior to the macro containing | 
					
						
							|  |  |  |   this reference. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-12-17 10:39:25 -06:00
										 |  |  | ## screws_tilt_adjust
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `screws_tilt_adjust` | 
					
						
							|  |  |  | object: | 
					
						
							|  |  |  | - `error`: Returns True if the most recent `SCREWS_TILT_CALCULATE` | 
					
						
							|  |  |  |   command included the `MAX_DEVIATION` parameter and any of the probed | 
					
						
							|  |  |  |   screw points exceeded the specified `MAX_DEVIATION`. | 
					
						
							| 
									
										
										
										
											2023-01-18 00:06:45 +00:00
										 |  |  | - `results["<screw>"]`: A dictionary containing the following keys: | 
					
						
							| 
									
										
										
										
											2022-12-17 10:39:25 -06:00
										 |  |  |   - `z`: The measured Z height of the screw location. | 
					
						
							|  |  |  |   - `sign`: A string specifying the direction to turn to screw for the | 
					
						
							|  |  |  |     necessary adjustment. Either "CW" for clockwise or "CCW" for | 
					
						
							| 
									
										
										
										
											2023-01-18 00:06:45 +00:00
										 |  |  |     counterclockwise. | 
					
						
							| 
									
										
										
										
											2022-12-17 10:39:25 -06:00
										 |  |  |   - `adjust`: The number of screw turns to adjust the screw, given in | 
					
						
							|  |  |  |     the format "HH:MM," where "HH" is the number of full screw turns | 
					
						
							|  |  |  |     and "MM" is the number of "minutes of a clock face" representing | 
					
						
							|  |  |  |     a partial screw turn. (E.g. "01:15" would mean to turn the screw | 
					
						
							|  |  |  |     one and a quarter revolutions.) | 
					
						
							| 
									
										
										
										
											2023-01-18 00:06:45 +00:00
										 |  |  |   - `is_base`: Returns True if this is the base screw. | 
					
						
							| 
									
										
										
										
											2022-12-17 10:39:25 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## servo
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:38:07 -04:00
										 |  |  | The following information is available in | 
					
						
							|  |  |  | [servo some_name](Config_Reference.md#servo) objects: | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `printer["servo <config_name>"].value`: The last setting of the PWM | 
					
						
							|  |  |  |   pin (a value between 0.0 and 1.0) associated with the servo. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-06 17:20:41 +00:00
										 |  |  | ## stepper_enable
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `stepper_enable` object (this | 
					
						
							|  |  |  | object is available if any stepper is defined): | 
					
						
							|  |  |  | - `steppers["<stepper>"]`: Returns True if the given stepper is enabled. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## system_stats
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `system_stats` object | 
					
						
							|  |  |  | (this object is always available): | 
					
						
							|  |  |  | - `sysload`, `cputime`, `memavail`: Information on the host operating | 
					
						
							|  |  |  |   system and process load. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## temperature sensors
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-28 20:58:32 -04:00
										 |  |  | The following information is available in | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [bme280 config_section_name](Config_Reference.md#bmp280bme280bme680-temperature-sensor), | 
					
						
							|  |  |  | [htu21d config_section_name](Config_Reference.md#htu21d-sensor), | 
					
						
							|  |  |  | [lm75 config_section_name](Config_Reference.md#lm75-temperature-sensor), | 
					
						
							|  |  |  | and | 
					
						
							|  |  |  | [temperature_host config_section_name](Config_Reference.md#host-temperature-sensor) | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | objects: | 
					
						
							|  |  |  | - `temperature`: The last read temperature from the sensor. | 
					
						
							|  |  |  | - `humidity`, `pressure`, `gas`: The last read values from the sensor | 
					
						
							|  |  |  |   (only on bme280, htu21d, and lm75 sensors). | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## temperature_fan
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:38:07 -04:00
										 |  |  | The following information is available in | 
					
						
							|  |  |  | [temperature_fan some_name](Config_Reference.md#temperature_fan) | 
					
						
							|  |  |  | objects: | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `temperature`: The last read temperature from the sensor. | 
					
						
							|  |  |  | - `target`: The target temperature for the fan. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## temperature_sensor
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:38:07 -04:00
										 |  |  | The following information is available in | 
					
						
							|  |  |  | [temperature_sensor some_name](Config_Reference.md#temperature_sensor) | 
					
						
							|  |  |  | objects: | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `temperature`: The last read temperature from the sensor. | 
					
						
							|  |  |  | - `measured_min_temp`, `measured_max_temp`: The lowest and highest | 
					
						
							|  |  |  |   temperature seen by the sensor since the Klipper host software was | 
					
						
							|  |  |  |   last restarted. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-27 19:24:14 -04:00
										 |  |  | ## tmc drivers
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available in | 
					
						
							|  |  |  | [TMC stepper driver](Config_Reference.md#tmc-stepper-driver-configuration) | 
					
						
							|  |  |  | objects (eg, `[tmc2208 stepper_x]`): | 
					
						
							|  |  |  | - `mcu_phase_offset`: The micro-controller stepper position | 
					
						
							|  |  |  |   corresponding with the driver's "zero" phase. This field may be null | 
					
						
							|  |  |  |   if the phase offset is not known. | 
					
						
							|  |  |  | - `phase_offset_position`: The "commanded position" corresponding to | 
					
						
							|  |  |  |   the driver's "zero" phase. This field may be null if the phase | 
					
						
							|  |  |  |   offset is not known. | 
					
						
							|  |  |  | - `drv_status`: The results of the last driver status query. (Only | 
					
						
							|  |  |  |   non-zero fields are reported.) This field will be null if the driver | 
					
						
							|  |  |  |   is not enabled (and thus is not periodically queried). | 
					
						
							| 
									
										
										
										
											2023-03-28 16:34:58 -04:00
										 |  |  | - `temperature`: The internal temperature reported by the driver. This | 
					
						
							|  |  |  |   field will be null if the driver is not enabled or if the driver | 
					
						
							|  |  |  |   does not support temperature reporting. | 
					
						
							| 
									
										
										
										
											2021-10-11 18:03:08 +02:00
										 |  |  | - `run_current`: The currently set run current. | 
					
						
							|  |  |  | - `hold_current`: The currently set hold current. | 
					
						
							| 
									
										
										
										
											2021-08-27 19:24:14 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## toolhead
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `toolhead` object | 
					
						
							|  |  |  | (this object is always available): | 
					
						
							|  |  |  | - `position`: The last commanded position of the toolhead relative to | 
					
						
							|  |  |  |   the coordinate system specified in the config file. It is possible | 
					
						
							|  |  |  |   to access the x, y, z, and e components of this position (eg, | 
					
						
							|  |  |  |   `position.x`). | 
					
						
							|  |  |  | - `extruder`: The name of the currently active extruder. For example, | 
					
						
							|  |  |  |   in a macro one could use `printer[printer.toolhead.extruder].target` | 
					
						
							|  |  |  |   to get the target temperature of the current extruder. | 
					
						
							|  |  |  | - `homed_axes`: The current cartesian axes considered to be in a | 
					
						
							|  |  |  |   "homed" state. This is a string containing one or more of "x", "y", | 
					
						
							|  |  |  |   "z". | 
					
						
							|  |  |  | - `axis_minimum`, `axis_maximum`: The axis travel limits (mm) after | 
					
						
							|  |  |  |   homing.  It is possible to access the x, y, z components of this | 
					
						
							|  |  |  |   limit value (eg, `axis_minimum.x`, `axis_maximum.z`). | 
					
						
							| 
									
										
										
										
											2022-08-19 19:27:44 +02:00
										 |  |  | - For Delta printers the `cone_start_z` is the max z height at | 
					
						
							|  |  |  |   maximum radius (`printer.toolhead.cone_start_z`). | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `max_velocity`, `max_accel`, `max_accel_to_decel`, | 
					
						
							|  |  |  |   `square_corner_velocity`: The current printing limits that are in | 
					
						
							|  |  |  |   effect. This may differ from the config file settings if a | 
					
						
							|  |  |  |   `SET_VELOCITY_LIMIT` (or `M204`) command alters them at run-time. | 
					
						
							|  |  |  | - `stalls`: The total number of times (since the last restart) that | 
					
						
							|  |  |  |   the printer had to be paused because the toolhead moved faster than | 
					
						
							|  |  |  |   moves could be read from the G-Code input. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## dual_carriage
 | 
					
						
							| 
									
										
										
										
											2021-06-28 00:37:05 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in | 
					
						
							|  |  |  | [dual_carriage](Config_Reference.md#dual_carriage) | 
					
						
							|  |  |  | on a hybrid_corexy or hybrid_corexz robot | 
					
						
							|  |  |  | - `mode`: The current mode. Possible values are: "FULL_CONTROL" | 
					
						
							|  |  |  | - `active_carriage`: The current active carriage. | 
					
						
							|  |  |  | Possible values are: "CARRIAGE_0", "CARRIAGE_1" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## virtual_sdcard
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the | 
					
						
							|  |  |  | [virtual_sdcard](Config_Reference.md#virtual_sdcard) object: | 
					
						
							|  |  |  | - `is_active`: Returns True if a print from file is currently active. | 
					
						
							|  |  |  | - `progress`: An estimate of the current print progress (based of file | 
					
						
							|  |  |  |   size and file position). | 
					
						
							| 
									
										
										
										
											2021-06-08 17:33:35 +00:00
										 |  |  | - `file_path`: A full path to the file of currently loaded file. | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | - `file_position`: The current position (in bytes) of an active print. | 
					
						
							| 
									
										
										
										
											2021-06-08 17:33:35 +00:00
										 |  |  | - `file_size`: The file size (in bytes) of currently loaded file. | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## webhooks
 | 
					
						
							| 
									
										
										
										
											2021-04-28 20:16:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `webhooks` object (this | 
					
						
							|  |  |  | object is always available): | 
					
						
							|  |  |  | - `state`: Returns a string indicating the current Klipper | 
					
						
							|  |  |  |   state. Possible values are: "ready", "startup", "shutdown", "error". | 
					
						
							|  |  |  | - `state_message`: A human readable string giving additional context | 
					
						
							|  |  |  |   on the current Klipper state. | 
					
						
							| 
									
										
										
										
											2021-06-02 09:11:19 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-25 18:39:14 +02:00
										 |  |  | ## z_thermal_adjust
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `z_thermal_adjust` object (this | 
					
						
							|  |  |  | object is available if [z_thermal_adjust](Config_Reference.md#z_thermal_adjust) | 
					
						
							|  |  |  | is defined). | 
					
						
							|  |  |  | - `enabled`: Returns True if adjustment is enabled. | 
					
						
							|  |  |  | - `temperature`: Current (smoothed) temperature of the defined sensor. [degC] | 
					
						
							|  |  |  | - `measured_min_temp`: Minimum measured temperature. [degC] | 
					
						
							|  |  |  | - `measured_max_temp`: Maximum measured temperature. [degC] | 
					
						
							|  |  |  | - `current_z_adjust`: Last computed Z adjustment [mm]. | 
					
						
							|  |  |  | - `z_adjust_ref_temperature`: Current reference temperature used for calculation | 
					
						
							|  |  |  |   of Z `current_z_adjust` [degC]. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-22 00:40:40 +02:00
										 |  |  | ## z_tilt
 | 
					
						
							| 
									
										
										
										
											2021-06-02 09:11:19 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | The following information is available in the `z_tilt` object (this | 
					
						
							|  |  |  | object is available if z_tilt is defined): | 
					
						
							|  |  |  | - `applied`: True if the z-tilt leveling process has been run and completed | 
					
						
							|  |  |  |   successfully. |