Code Monkey home page Code Monkey logo

Comments (6)

dalegaard avatar dalegaard commented on September 13, 2024 1

Hi @blakeyjason

Check the last line of the file, it will say Processed by ... and tell you which slicer was detected.

Best regards,
Lasse

from klipper_estimator.

blakeyjason avatar blakeyjason commented on September 13, 2024

Ah, I see - it detected PrusaSlicer...

; Processed by klipper_estimator v3.7.3, detected slicer PrusaSlicer 2.7.4+win64

Is there any way to force the detection? The Creality OS really wants to see TIME_ELAPSED, not M73s...

from klipper_estimator.

dalegaard avatar dalegaard commented on September 13, 2024

Hi @blakeyjason

As of today there is no way to force a specific slicer version. While it would be possible to update the TIME_ELAPSED code to work for other slicers, I'm a bit weary of that because of potential differences in how the various time formats would work. The slicer detection code is there to ensure that we do sane things for all slicers instead of risking outputting bogus values.

I was under the impression Creality OS was just Klipper though. What stack are you using here? As far as I'm aware, PrusaSlicer does not natively output TIME_ELAPSED lines?

Best regards,
Lasse

from klipper_estimator.

blakeyjason avatar blakeyjason commented on September 13, 2024

The problem is not with Creality OS - that is pretty much klipper. Side-loaded Fluidd displays the updates fine. But the native Creality display on the printer expects to see TIME_ELAPSED values from the gcode (that's what I'm seeing in output from the Creality Slicer, called "Creality Print").

My stack is PrusaSlicer -> Estimator -> MoonRaker -> Fluidd -> The default Creality display app running on the printer.

from klipper_estimator.

dalegaard avatar dalegaard commented on September 13, 2024

Okay, now I understand.

This isn't supported right now, and I don't have much time to implement it sadly. I would like to implement a way to do replacements of some template format in the gcode with time estimates. This would also work for #63 .

Basically the idea would be that instead of putting ;TIME_ELAPSED:1.234567 in your slicer, you'd put something ala:

;TIME_ELAPSED:{estimator#current_time_seconds}`

And estimator would replace it with the right value.

I will keep this open until a mechanism like that is implemented.

Best regards,
Lasse

from klipper_estimator.

blakeyjason avatar blakeyjason commented on September 13, 2024

That would be great! Nice and general purpose.

Thanks for thinking about it for me.

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.