Skip to content

Instantly share code, notes, and snippets.

@lhess
Created December 4, 2020 11:17
Show Gist options
  • Save lhess/9d2fe36094cf05bcf0a7d8c2e64ac5d6 to your computer and use it in GitHub Desktop.
Save lhess/9d2fe36094cf05bcf0a7d8c2e64ac5d6 to your computer and use it in GitHub Desktop.
klipper prusaslicer M73 remaining time
[display_data _default_16x4 printing_time]
position: 2, 10
text:
{% set ptime = printer["gcode_macro M73"].r %}
{ "R%02d:%02d" % (ptime // 60, ptime % 60) }
[gcode_macro M73]
rename_existing: M773
variable_p: 0.0
variable_r: 0.0
default_parameter_P: 0.0
default_parameter_R: 0.0
gcode:
M773 P{P}
SET_GCODE_VARIABLE MACRO=M73 VARIABLE=p VALUE={P}
SET_GCODE_VARIABLE MACRO=M73 VARIABLE=r VALUE={R}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment