Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Integrate web app features in Cura

    Scheduled Pinned Locked Moved
    Duet Web Control wishlist
    5
    7
    903
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hauschkaundefined
      hauschka
      last edited by hauschka

      Hi,

      I am interested in integrating the Duet's status in Cura's monitor tab.
      I'm looking at exposing most of the functions from the DWC to Cura.

      What I got so far is that DWC sends HTTP GET and POST requests to ReprapFirmware and diplays it through a web interface.

      Efficiency-wise it probably wouldn't make much sense to scrape the values from the interface and display them in Cura, but rather query them the same way the web interface does it.

      So far, DWC's list of HTTP requests lists the requests currently used by the web interface, so I wanted to know whether there is a list of ALL requests that the RRfirmware supports? I found this list, but is this all?

      Also, do I need to constantly re-load/"re-poll" frequently changing values, such as eg the extruder tempt? Or is there an easier way of keeping the displayed values up-to-date?

      Thanks for all the input,
      -h

      1 Reply Last reply Reply Quote 1
      • dc42undefined
        dc42 administrators
        last edited by

        @hauschka said in Integrate web app features in Cura:

        So far, DWC's list of HTTP requests lists the requests currently used by the web interface, so I wanted to know whether there is a list of ALL requests that the RRfirmware supports? I found this list, but is this all?

        The list in DWC is more up to date. RRF also supports the rr_files command.

        @hauschka said in Integrate web app features in Cura:

        Also, do I need to constantly re-load/"re-poll" frequently changing values, such as eg the extruder tempt?

        Yes.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        hauschkaundefined 1 Reply Last reply Reply Quote 0
        • Red Sand Robotundefined
          Red Sand Robot
          last edited by

          @hauschka I had the same thought to try to implement DWC in the monitor tab! If you have anything in useable state I'd be interested in testing it out.

          almost an engineer

          1 Reply Last reply Reply Quote 1
          • jckrayundefined
            jckray
            last edited by

            @hauschka I have also been thinking about this. Please update if you get anything working!

            John
            Founder of Hydra Research LLC, developers of the open-source 3D printers and providers of 3D printing services.
            https://www.hydraresearch3d.com/

            1 Reply Last reply Reply Quote 1
            • hauschkaundefined
              hauschka @dc42
              last edited by hauschka

              @dc42
              Thank you for your reply.

              @all 🙂
              Any ideas how modify such a HTTP request in such a way that Python can query the value?

              In other words, how do I query a value from the firmware in Python? 🙂

              Regards,
              -h

              mloidlundefined 1 Reply Last reply Reply Quote 0
              • mloidlundefined
                mloidl @hauschka
                last edited by

                Hi @hauschka,

                You can find some useful pyhton examples in the Cura-DuetRRFPlugin => https://github.com/Kriechi/Cura-DuetRRFPlugin, as well in https://github.com/mloidl/DuetMonitor

                I think most of the work will be to parse the response-json and take out the relevant values.

                Hopefully this is a good starting point.

                1 Reply Last reply Reply Quote 0
                • hauschkaundefined
                  hauschka
                  last edited by

                  Awesome, thanks!

                  Let's see where this leads me 😉

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA