Using DWC to make my own web interface
-
@thyrviklein To make your own DWC fork you should be familiar with Node, VueJS v2 and Vuetify. See https://v2.vuejs.org/ and https://vuetifyjs.com/en/. The source code of DWC can be found here: https://github.com/Duet3D/DuetWebControl
-
@chrishamm Thanks for the reply! But i am not looking to use Vue.js I rather code it myself but i still need to figure how the backend of DWC works. If you could help me with that i would really appreciate it.
-
@thyrviklein It uses HTTP requests to the board. I already explained that in your other thread
-
@jay_s_uk I know but I still cant understand how it works and i cant find any specific explanation with code examples that are in DWC
-
@thyrviklein well you don't want to use VUE so what does it matter if you can find examples in the DWC code?
The information regarding HTTP requests in on the wiki. Here's the link (again) https://github.com/Duet3D/RepRapFirmware/wiki/HTTP-requests -
@jay_s_uk Okay thanks! but how does dwc send these http request is what i am after i think.
-
@thyrviklein it basically runs locally within your browser as an app and sends the HTTP requests on a loop. I think its every 0.5 seconds
-
@jay_s_uk How exactly does it send the http request to the duet? Like how does it know where to send the request to?
-
@thyrviklein I imagine what you are looking for is this.
https://github.com/Duet3D/DuetWebControl/tree/master/src/store/machine/connectorHowever, worth noting is that even though the connector is separate it does bring in classes from other parts of the web application.
Depending on what you plan to code you may be better off implementing your own connector and just use this as a reference.
-
@sindarius I have put these files inside of my own interface but I can't seem to get a connection can you tell what I need to do to make my own connection to the Duet with my own interface?