job_status: update Z value to gcode value
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
## Changelog
|
||||
|
||||
#### 2020 12 09
|
||||
* Z value in job status now reflects the gcode Z value. This allows people with ABL to have a better understanding of Z
|
||||
|
||||
#### 2020 12 08
|
||||
* Screen Width/Height are now definable in the configuration file
|
||||
* Changed job page to allow for more information, display thumbnail of STL
|
||||
|
@@ -350,7 +350,9 @@ class JobStatusPanel(ScreenPanel):
|
||||
if "toolhead" in data and "position" in data["toolhead"]:
|
||||
self.labels['pos_x'].set_text("X: %.2f" % (data["toolhead"]["position"][0]))
|
||||
self.labels['pos_y'].set_text("Y: %.2f" % (data["toolhead"]["position"][1]))
|
||||
self.labels['pos_z'].set_text("Z: %.2f" % (data["toolhead"]["position"][2]))
|
||||
if "gcode_move" in data and "gcode_position" in data["gcode_move"]:
|
||||
self.labels['pos_z'].set_text("Z: %.2f" % (data["gcode_move"]["gcode_position"][2]))
|
||||
|
||||
if "gcode_move" in data:
|
||||
#if "homing_origin" in data["gcode_move"]:
|
||||
# self.labels['zoffset'].set_text("%.2fmm" % data["gcode_move"]["homing_origin"][2])
|
||||
|
@@ -119,7 +119,7 @@ class KlipperScreen(Gtk.Window):
|
||||
"configfile": ["config"],
|
||||
"extruder": ["target","temperature","pressure_advance","smooth_time"],
|
||||
"fan": ["speed"],
|
||||
"gcode_move": ["homing_origin","extrude_factor","speed_factor"],
|
||||
"gcode_move": ["extrude_factor","gcode_position","homing_origin","speed_factor"],
|
||||
"heater_bed": ["target","temperature"],
|
||||
"pause_resume": ["is_paused"],
|
||||
"print_stats": ["print_duration","total_duration","filament_used","filename","state","message"],
|
||||
|
Reference in New Issue
Block a user