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

    Using DWC to make my own web interface

    Scheduled Pinned Locked Moved
    Duet Web Control
    5
    13
    571
    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.
    • ThyrviKleinundefined
      ThyrviKlein @Norder
      last edited by

      @norder Thanks but I want to use Duet as a kind off Framework with my own coded interface on top. Do you know how i can best approach this?

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @ThyrviKlein
        last edited by

        @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

        Duet software engineer

        ThyrviKleinundefined 1 Reply Last reply Reply Quote 3
        • ThyrviKleinundefined
          ThyrviKlein @chrishamm
          last edited by

          @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.

          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @ThyrviKlein
            last edited by

            @thyrviklein It uses HTTP requests to the board. I already explained that in your other thread

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            ThyrviKleinundefined 1 Reply Last reply Reply Quote 1
            • ThyrviKleinundefined
              ThyrviKlein @jay_s_uk
              last edited by

              @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

              jay_s_ukundefined 1 Reply Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk @ThyrviKlein
                last edited by

                @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

                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                ThyrviKleinundefined 1 Reply Last reply Reply Quote 0
                • ThyrviKleinundefined
                  ThyrviKlein @jay_s_uk
                  last edited by

                  @jay_s_uk Okay thanks! but how does dwc send these http request is what i am after i think.

                  jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                  • jay_s_ukundefined
                    jay_s_uk @ThyrviKlein
                    last edited by

                    @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

                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                    ThyrviKleinundefined 1 Reply Last reply Reply Quote 0
                    • ThyrviKleinundefined
                      ThyrviKlein @jay_s_uk
                      last edited by ThyrviKlein

                      @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?

                      1 Reply Last reply Reply Quote 0
                      • Sindariusundefined
                        Sindarius
                        last edited by

                        @thyrviklein I imagine what you are looking for is this.
                        https://github.com/Duet3D/DuetWebControl/tree/master/src/store/machine/connector

                        However, 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.

                        ThyrviKleinundefined 1 Reply Last reply Reply Quote 0
                        • ThyrviKleinundefined
                          ThyrviKlein @Sindarius
                          last edited by

                          @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?

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