Integrate web app features in Cura
-
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 -
@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.
-
@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.
-
@hauschka I have also been thinking about this. Please update if you get anything working!
-
@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 -
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.
-
Awesome, thanks!
Let's see where this leads me