-
-
Save lhess/9d2fe36094cf05bcf0a7d8c2e64ac5d6 to your computer and use it in GitHub Desktop.
klipper prusaslicer M73 remaining time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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