• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    hauschka
    last edited by hauschka 31 May 2019, 21:39

    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
    • undefined
      dc42 administrators
      last edited by 1 Jun 2019, 09:21

      @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

      undefined 1 Reply Last reply 6 Jun 2019, 13:10 Reply Quote 0
      • undefined
        Red Sand Robot
        last edited by 1 Jun 2019, 18:11

        @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
        • undefined
          jckray
          last edited by 2 Jun 2019, 22:08

          @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
          • undefined
            hauschka @dc42
            last edited by hauschka 6 Jun 2019, 13:18 6 Jun 2019, 13:10

            @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

            undefined 1 Reply Last reply 6 Jun 2019, 13:23 Reply Quote 0
            • undefined
              mloidl @hauschka
              last edited by 6 Jun 2019, 13:23

              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
              • undefined
                hauschka
                last edited by 7 Jun 2019, 09:57

                Awesome, thanks!

                Let's see where this leads me 😉

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