mirror of https://github.com/Desuuuu/klipper.git
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
|
@ -6,6 +6,12 @@ All dates in this document are approximate.
|
||||||
|
|
||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
20200603: The default 16x4 LCD layout will no longer show the
|
||||||
|
estimated time remaining in a print. (Only the elapsed time will be
|
||||||
|
shown.) If the old behavior is desired one can customize the menu
|
||||||
|
display with that information (see the description of display_data in
|
||||||
|
config/example-extras.cfg for details).
|
||||||
|
|
||||||
20200531: The default USB vendor/product id is now 0x1d50/0x614e.
|
20200531: The default USB vendor/product id is now 0x1d50/0x614e.
|
||||||
These new ids are reserved for Klipper (thanks to the openmoko
|
These new ids are reserved for Klipper (thanks to the openmoko
|
||||||
project). This change should not require any config changes, but the
|
project). This change should not require any config changes, but the
|
||||||
|
|
|
@ -45,15 +45,7 @@ text:
|
||||||
[display_template _printing_time]
|
[display_template _printing_time]
|
||||||
text:
|
text:
|
||||||
{% set ptime = printer.idle_timeout.printing_time %}
|
{% set ptime = printer.idle_timeout.printing_time %}
|
||||||
{% set progress = printer.display_status.progress %}
|
{ "%02d:%02d" % (ptime // (60 * 60), (ptime // 60) % 60) }
|
||||||
{% 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 %}
|
|
||||||
|
|
||||||
[display_template _print_status]
|
[display_template _print_status]
|
||||||
text:
|
text:
|
||||||
|
@ -100,7 +92,7 @@ text: { draw_progress_bar(2, 0, 10, printer.display_status.progress) }
|
||||||
|
|
||||||
[display_data _default_16x4 printing_time]
|
[display_data _default_16x4 printing_time]
|
||||||
position: 2, 10
|
position: 2, 10
|
||||||
text: { render("_printing_time") }
|
text: { "%6s" % (render("_printing_time").strip(),) }
|
||||||
|
|
||||||
[display_data _default_16x4 print_status]
|
[display_data _default_16x4 print_status]
|
||||||
position: 3, 0
|
position: 3, 0
|
||||||
|
@ -136,7 +128,7 @@ text: { render("_heater_temperature", param_heater_name="heater_bed") }
|
||||||
|
|
||||||
[display_data _multiextruder_16x4 printing_time]
|
[display_data _multiextruder_16x4 printing_time]
|
||||||
position: 2, 10
|
position: 2, 10
|
||||||
text: { render("_printing_time") }
|
text: { "%6s" % (render("_printing_time").strip(),) }
|
||||||
|
|
||||||
[display_data _multiextruder_16x4 print_status]
|
[display_data _multiextruder_16x4 print_status]
|
||||||
position: 3, 0
|
position: 3, 0
|
||||||
|
@ -185,9 +177,8 @@ text:
|
||||||
[display_data _default_20x4 printing_time]
|
[display_data _default_20x4 printing_time]
|
||||||
position: 2, 14
|
position: 2, 14
|
||||||
text:
|
text:
|
||||||
{% set seconds = printer.idle_timeout.printing_time %}
|
|
||||||
~clock~
|
~clock~
|
||||||
{ "%02d:%02d" % (seconds // (60 * 60), (seconds // 60) % 60) }
|
{ render("_printing_time") }
|
||||||
|
|
||||||
[display_data _default_20x4 print_status]
|
[display_data _default_20x4 print_status]
|
||||||
position: 3, 0
|
position: 3, 0
|
||||||
|
|
Loading…
Reference in New Issue