Code Monkey home page Code Monkey logo

Comments (2)

DruckiMcDruck avatar DruckiMcDruck commented on July 20, 2024

I just ran into this exact issue. I'm using Cura 4.8.0 and Moonraker + Mainsail. As the Cura Octoprint Plugin doesn't work with Moonraker, i setup a samba netshare to save files directly onto the pi. Sadly moonraker doesn't process these files at all, leaving me without preview.

I see three possible solutions for this:

  1. monitor the upload folder and trigger the processing when a new file is uploaded, regardless where it came from
  2. allow frontends like mainsail to trigger the processing when a the user clicks on a file if it doesn't have a preview
  3. allow to manually trigger processing of all files in the upload folder

I consider option 1 the best solution as it "just works".

from moonraker.

Arksine avatar Arksine commented on July 20, 2024

Generally speaking it is intended for users to manage files via the interface. While its possible to monitor folders, there are some caveats and it can cause real problems depending on how the system is configured. In the future I may look into an event driven solution where the file manager is notified by the kernel, but that is low priority so I have no timetable on it. I am however open unzipping a UFP when a directory is refreshed in the UI, similar to the OPs example.

In an ideal world someone will add a Cura plugin with support for Moonraker. This could be done via direct API support or by using the limited Octoprint APIs Moonraker supports for file uploads. I don't use Cura nor do I have time to maintain such a plugin so it would need to be user contributed.

from moonraker.

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.