-
-
Notifications
You must be signed in to change notification settings - Fork 441
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
Add klipper_estimator support #914
base: master
Are you sure you want to change the base?
Conversation
b668132
to
f6c8856
Compare
…mator Signed-off-by: Nelson Graça <[email protected]>
The moonraker component was downloaded from Arksine/moonraker#914 and the estimator from https://github.com/Annex-Engineering/klipper_estimator/releases/download/v3.7.3/klipper_estimator_rpi Signed-off-by: Sven Eckelmann <[email protected]>
fix plugin config doc Co-authored-by: CharlemagneLasse <[email protected]>
sorry for the ping @Arksine but is there any chance this will be merged? |
[self.ke_exec, "--config_moonraker_url", self.url, "post-process", | ||
f"\"{path}\""]) | ||
logging.info(f"Running {cmd}") | ||
timeout = 10. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
During my experimentations, I've noticed that the rpi4 is often not able to process the gcode files in 10 seconds. I've now increased it for me to 120s inside the code. Not sure if it would be better to make it configurable from the outside.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's worth adding as a config, I'll add it.
Thanks, sorry for the delay in responding, time has been somewhat constrained until recently. I had started some work on this and recently finished it, which is now available in the analysis module. It takes a different approach as it doesn't apply a post-process to the file. The primary issue with a post-process approach that triggers on a With the
|
@Arksine I read your changeset and configured it with
The Does the current solution do this? And if not, is it planned? The reason I ask is that frontends like KlipperScreen calculate the remaining time with one of your methods -> https://moonraker.readthedocs.io/en/latest/external_api/introduction/?h=progress#basic-print-status. And if they use Thanks for your work |
@freakydude That would require a post process. I think it would be better to perform it in the slicer. At this time I don’t have plans to add support for post-processing in Moonraker as there are potential issues with inotify. |
But aren't you already doing postprocessing for
Of course, I needed to update moonraker and co to get this builtin analysis code. It can therefore be that some other non-analysis change broke these things |
The processing done for I don't use KlipperScreen, but I'll test to see if I can repro some of your issues in Fluidd. Some of what you report doesn't sound related. Edit: If the M73 time estimates are critical I'll reconsider post-processing support. I'll have to give it some thought about the best way to do it, most likely it will need to be done in |
I did decide to change the behavior of the @pedrolamas @meteyou This change includes a new metadata field, I chose this method in case there are further post-processing apps that should be added in the future. The implementation is generic, the component hosting the app (ie: I also added a an endpoint that allows for a manual post-process. |
@Arksine Sounds great – I'll check this out soon. Thanks for reconsidering. |
Unrelated, but for the record, that was probably my fault in a botched Fluidd code refactor I did, and not related with the Moonraker changes here... It should be fixed on Fluidd v1.32.2 though, so please do ensure you update to that version. |
@Arksine I've now implemented in the latest moonraker |
@Arksine Seems like it works Left -> prusa estimation I really have no idea where the small difference comes from. Does the Moonraker post-processing solution also parse the klipper gcode macros? But anyways great work! |
I have v1.32.2 according to the "Software Updates" page. But still, I see the problem. But there are a couple of things which could be related:
|
@freakydude Moonraker's automated post-process just executes The discrepancy might be from post-processing the same file twice. It might be a simple rounding error. I haven't looked into how Klipper Estimator calculates its estimates, its possible that different runs always produce slightly different results. |
Added the ability to pipe gcode through klipper_estimator.
Related feature request: #481