mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-08 22:35:17 -06:00
display: Do not show time remaining in default 16x4 display
The time remaining estimation is wildy inaccurate. Only show the time elapsed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
2da7d65402
commit
2a66286d1c
2 changed files with 10 additions and 13 deletions
|
@ -45,15 +45,7 @@ text:
|
|||
[display_template _printing_time]
|
||||
text:
|
||||
{% set ptime = printer.idle_timeout.printing_time %}
|
||||
{% set progress = printer.display_status.progress %}
|
||||
{% if progress >= 0.05 and ptime % 12 >= 6 %}
|
||||
# Periodically show time remaining
|
||||
{% set rtime = (ptime / progress) - ptime %}
|
||||
{ "-%02d:%02d" % (rtime // (60 * 60), (rtime // 60) % 60) }
|
||||
{% else %}
|
||||
{% set msg = "%02d:%02d" % (ptime // (60 * 60), (ptime // 60) % 60) %}
|
||||
{ "%6s" % (msg,) }
|
||||
{% endif %}
|
||||
{ "%02d:%02d" % (ptime // (60 * 60), (ptime // 60) % 60) }
|
||||
|
||||
[display_template _print_status]
|
||||
text:
|
||||
|
@ -100,7 +92,7 @@ text: { draw_progress_bar(2, 0, 10, printer.display_status.progress) }
|
|||
|
||||
[display_data _default_16x4 printing_time]
|
||||
position: 2, 10
|
||||
text: { render("_printing_time") }
|
||||
text: { "%6s" % (render("_printing_time").strip(),) }
|
||||
|
||||
[display_data _default_16x4 print_status]
|
||||
position: 3, 0
|
||||
|
@ -136,7 +128,7 @@ text: { render("_heater_temperature", param_heater_name="heater_bed") }
|
|||
|
||||
[display_data _multiextruder_16x4 printing_time]
|
||||
position: 2, 10
|
||||
text: { render("_printing_time") }
|
||||
text: { "%6s" % (render("_printing_time").strip(),) }
|
||||
|
||||
[display_data _multiextruder_16x4 print_status]
|
||||
position: 3, 0
|
||||
|
@ -185,9 +177,8 @@ text:
|
|||
[display_data _default_20x4 printing_time]
|
||||
position: 2, 14
|
||||
text:
|
||||
{% set seconds = printer.idle_timeout.printing_time %}
|
||||
~clock~
|
||||
{ "%02d:%02d" % (seconds // (60 * 60), (seconds // 60) % 60) }
|
||||
{ render("_printing_time") }
|
||||
|
||||
[display_data _default_20x4 print_status]
|
||||
position: 3, 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue