GithubHelp home page GithubHelp logo

Comments (4)

Donkie avatar Donkie commented on August 29, 2024 2

Hey @PatrickGlatz , glad you found your way in here!

The upwards counting change I made will actually make it more possible to do what you want. This back end fully supports it, and it's up to the front end to display it in such a way to make it negative:

  • weight_left = full_weight - used_weight
  • Since used_weight can grow in an unbounded fashion now, weight_left will become negative. Then moonraker/mainsail can take action on that and give you a warning if it wants to.

Regarding when this will be available, no clue. I'm still waiting for feedback from Arksine on this approach, whether this is something he envisions moonraker supporting. I can assist with implementing it in Moonraker, but I'd rather have Arksine's blessing before spending any more time on this.

That's the first step, then the clients such as mainsail need to support it as well.

from spoolman.

Digityle avatar Digityle commented on August 29, 2024 1

I've just set up vue.js been messing around with mainsail since you and @jmmcaull have both been on back end, I know little but am learning...

from spoolman.

PatrickGlatz avatar PatrickGlatz commented on August 29, 2024

Hi @Donkie

thanks so much for the explanation. That makes somehow sense to me. But what i am wondering is, whether the front end then has to maintain also a database with the initial spool weight. Is it then not doubled? Or is full_weight also specified in your database?

If you would need a Beta Tester then in mainsail, i would be raise my hands up.

Thanks for your efforts
Patrick

from spoolman.

Donkie avatar Donkie commented on August 29, 2024

Yes, full_weight is indirectly set in the Spoolman database. You configure the empty spool weight, and the weight of filament in a full spool.

I've actually started using this solution myself for the last few prints, and it's working great. The biggest crux right now for most users would be to set which spool is the active one, it requires some tinkering until the frontend devs add a proper way of setting it. And they won't do that until my pull request in Moonraker Arksine/moonraker#651 is reviewed and merged.

from spoolman.

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.