moonraker icon indicating copy to clipboard operation
moonraker copied to clipboard

[FR] Pipe through Klipper Estimator

Open Sineos opened this issue 2 years ago • 14 comments

Is your feature request related to a problem? Please describe

Currently the print time guesses are just that - guesses based on slicer information and (I assume) layer times of the previous layers.

Describe the solution you'd like

Pipe the gcode transparently through Klipper Estimator to return accurate print time forecasts to the clients

Describe alternatives you've considered

Leave it as is. Anyway takes as long as it takes 😉

Additional information

No response

Sineos avatar Aug 09 '22 22:08 Sineos

I'm happy to do this as a moonraker plugin -- it will fit nicely with the gcode server plugin I was writing.

gauravmm avatar Aug 10 '22 19:08 gauravmm

Is there a chance this can be implemented like the EXCLUDE_OBJECT post-processing? That would be very neat

Dreistein75 avatar Nov 18 '22 19:11 Dreistein75

The current idea is that this is dynamically calculated (and cached) by a moonraker plugin, so no slicers need to be involved, it can pull the latest Klipper configuration information automatically, and it can recompute the estimate when the Klipper configuration changes.

gauravmm avatar Nov 19 '22 20:11 gauravmm

Bump! Any updates on this?

lbibass avatar Jan 30 '23 19:01 lbibass

I'm almost done writing my PhD dissertation, I'll ~~start~~ resume work on this in mid-Feb. Sorry about the delay!

I'm at the stage where I have figured out how Klipper implements kinematics, and am re-implementing them in Julia (for speed). Next step is using a differentiable numerical library so I can compute gradients of total time taken w.r.t. model and slicing parameters. (This would be very useful for people doing benchy competitions.)

gauravmm avatar Jan 31 '23 00:01 gauravmm

I'm almost done writing my PhD dissertation, I'll ~start~ resume work on this in mid-Feb. Sorry about the delay!

No worries! Congrats on nearly being finished with your PhD! Good luck!

lbibass avatar Feb 07 '23 15:02 lbibass

Ping. Any progress?

richfelker avatar Nov 27 '23 00:11 richfelker

Using klipper estimater as a post processing script in my slicer results in very accurate estimates if I look at the slicer time remaining in mainsail. Makes me wish I could just disable the built in time remaining, cause it's basically pointless.

clinta avatar Jan 21 '24 16:01 clinta

I have written a plugin to run gcode on upload through klipper estimator, still a little rough but it's working.

@Arksine would you be willing to add this in or would you prefer for it to be a plugin?

nelsongraca avatar Mar 08 '24 22:03 nelsongraca