-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update DisplayInfoOnLCD.py #18774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update DisplayInfoOnLCD.py #18774
Conversation
2e5cd5f
to
3cd4efb
Compare
3cd4efb
to
2061fba
Compare
Most of these changes were requested by #18766 while other are because I'm unable to keep my fingers out of it. |
Bug fix for "remaining_time". Affected M118 and M73_time Update DisplayInfoOnLCD.py Add options for Time-to-pause to include Filament Change. Update DisplayInfoOnLCD.py Make M117 optional. Combine M73 R and M73 P lines into a single line. Add A and P parameters for M118 lines. Update DisplayInfoOnLCD A TouchUp. Update DisplayInfoOnLCD.py TouchUp Update DisplayInfoOnLCD.py TuneUp
2061fba
to
da0fe19
Compare
Should not have been included.
I see no reason why Remco and Casper have to be the only ones horrified by my coding style. |
Did a quick check to share the horror :P But I'm not familiar enough with the code to make a full review on it. |
Thanks for looking anyway. |
Revised the M118 lines and insertion point in the gcode. Revised M117 same. Added nozzle size and filament type to data[0]
Added "global_stack" variable.
Bug fix.
Update. Remove vestigial line of code at line 530.
Added a condition so the pause_cmd setting box is hidden unless the 'display_option' == "display_progress".
Split functions from Execute. Added function "Add Settings" so it also works with the "filename_layer" option.
Changed the fialment type 'get' from: 'getProperty' to 'material.getMetaDataEntry'
Added the "time to pause" to the user message. Update DisplayInfoOnLCD.py update
3f1a04a
to
416b159
Compare
Strings like "M118 ", "M117 ", and "M73" are repeated through the code. You could define these as constants at the top of the script for easier maintenance. For example:
|
Fixed the m118_str/m118_text confusion.
Requested changes
Minor changes to the statistics added to the beginning of the gcode.
Changes to the print statistics entered into the gcode.
Per a suggestion in #20509 I added the profile name to the other settings being inserted at the beginning of the gcode. |
ba87570
to
ec4a7ad
Compare
Add the 'Quality Name' to the gcode with the other settings. Update DisplayInfoOnLCD.py Touchups. Update DisplayInfoOnLCD.py Minor change
ec4a7ad
to
bf8d31a
Compare
Made some changes to the print stats that are added to the gcode. Update DisplayInfoOnLCD.py
f755749
to
6152306
Compare
After working on PrintSkew and seeing that different printer names can be involved I changed this script to alter the Cura inserted "TARGET_MACHINE.NAME" line. |
It turns out that some firmware doesn't like colons within M118 commands.
@HellAholic
|
Add "Electricity Cost" to the statistics added to the gcode. Update DisplayInfoOnLCD.py Formatting changes for layer heights
ca7312d
to
3ad2c1b
Compare
I'll take a look. 👍 |
Bug fix for "remaining_time".
Affected M118 and M73_time
Bug was pointed out in #18766
Description
This repairs a problem with M118 lines being added if "remaining_time" was not selected. The bug affected M118 and M73_time insertions.
There was a request to add the "A" and "P" parameters to the M118 lines as they might be required by Octoprint.
Adding M117 is now an option.
This fixes... OR This improves... -->
Type of change
How Has This Been Tested?
Cura 5.7beta and 4.13.1
Test Configuration:
Checklist: