mmone / OctoprintKlipperPlugin

A plugin for a better integration of Klipper into OctoPrint.
GNU General Public License v3.0
84 stars 61 forks source link

Klipper Console Output does not show newlines #20

Closed oderwat closed 5 years ago

oderwat commented 5 years ago

I am using DELTA_CALIBRATE with some macros (using my phone as 'remote control' standing before the printer). Before I ask to add it as a feature that the plugin updates the configuration automatically I would be already pretty happy if it would show the newlines in the output. I guess this applies to other commands (mesh points?) too.

image

The above should be more like

stepper_a: position_endstop: 292.737549 angle: 89.603791
stepper_b: position_endstop: 291.898510 angle: 208.752638
stepper_c: position_endstop: 292.145320 angle: 330.000000
delta_radius: 132.776768
To use these parameters, update the printer config file with the above and then issue a RESTART command
mmone commented 5 years ago

I don't think I strip new lines from the log output. But I will check. Btw. Kevin et. al a working on persistency for Bed Mesh leveling if I'm not mistaken.

oderwat commented 5 years ago

There are for sure newlines there normally. You probably need to convert those to <br> for the HTML output.

mmone commented 5 years ago

Thanks for the hint. This is now fixed in master.