Code Monkey home page Code Monkey logo

Comments (6)

dalegaard avatar dalegaard commented on August 28, 2024

Hi @zellneralex

I'm not sure I understand what you mean with this? Do you want to run klipper_estimator on every file uploaded via Moonraker?

If yes(which could work, though it might be slow because it's running on a Raspberry Pi) then that would be for the Moonraker project to do I think :-)

Best regards,
Lasse

from klipper_estimator.

zellneralex avatar zellneralex commented on August 28, 2024

Hi Lasse,

sorry for my late response. What did you expect ;-) a day after you published it at the klipper discord there where the first requests to add it in the UIs to get a better prediction on ETA.
And therefor I thought I start here as I know you would be capable to do it and do not wont to overload Arksine.
But I can understand your answer.

I can close it if you want that.

Best regards
Alex

from klipper_estimator.

Arksine avatar Arksine commented on August 28, 2024

I'm going to look into adding support for this, I started playing with it and I find it pretty exciting. On a Pi 3 it's reasonably fast, I ran a 200MB file in under 45s. When I wrote Moonraker's metadata parser it was important to me that it be quick, so it relies completely on what can be extracted from the comments (and it some cases from the gcode). The Klipper Estimator is more akin to Octoprint's gcode processor, however its FAST.

from klipper_estimator.

dalegaard avatar dalegaard commented on August 28, 2024

@Arksine that sounds great, let me know if you need any special output or find something missing. I recently added a --format json option to the estimate command so quite extensive output is available.

from klipper_estimator.

Piezoid avatar Piezoid commented on August 28, 2024

When dalegaard was "thinking of adding some generic metadata parsing support to the planner library, so clients can easily get stuff like layer height", I suggested implementing moonraker's metadata.py json interface such that klipper_estimator can be used as a drop-in replacement for this script. metadata.py already runs in a separate process, thus it doesn't matters whether it use the python runtime or not.

Otoh, re-implementing a compatible and throughout metadata extraction might be out of scope for klipper_estimator, since metadata.py is almost ~1kLOC.

from klipper_estimator.

dalegaard avatar dalegaard commented on August 28, 2024

I'll close this for now, feel free to post any updates here and we'll re-open if relevant :)

Best regards
Lasse

from klipper_estimator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.