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

    DWC Custom Configuration

    Scheduled Pinned Locked Moved
    Duet Web Control
    13
    42
    3.5k
    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.
    • MintyTreborundefined
      MintyTrebor @theKM
      last edited by MintyTrebor

      Chipping in as we seem to have a number of plugin devs on this thread, and to possibly help the OP query.

      @Dr_Ju_Ju The DWC top section can be hidden (as mentioned in an earlier post) if you happen to running on mobile. A button appears to show hide the section. I have looked at the code and it only requires the DWC dev @chrishamm to change 2 lines of code to enable that button for all screen sizes. I see no functional reason why this change cannot be requested to be included in the next release if @chrishamm agrees. Hopefully this would help alleviate some of your frustration.

      Screenshot 2021-09-29 074956.png

      From a plugin dev perspective I personally would like the change to go one step further and make the show/hide button function addressable through the JS Dom (it may already be, I just haven't tried yet). This way plugin dev's can use/offer the option to show hide the top section in their UI if required. This seems like a low impact way of making this feature more useful, without compromising existing functionality.

      Going forward if this change were to be made, I would expand BtnCmd to include more DWC info/control panels (I only offer a small selection currently) enabling a user to effectively pick and choose the panels they want on screen, which would go some way to meeting the demand for more customisation options.

      I can see this being helpful for other plugins where more screen real estate would be desirable - heightmap - gcode viewer etc....

      Thoughts?

      Given the amount of interest this post has generated I would be interested to hear @chrishamm thoughts on these proposals / discussion.

      Update: For the plugin devs

      window.document.getElementById("global-container").hidden = true;
      

      does already work to show/hide top section - (I had to have a go😊 )

      NodeDSF - Native Node-Red integration with Duet boards.
      BtnCmd - Customise DWC with user defined buttons/layouts/panels (DWC Plugin)
      ReleaseMgr - Duet update info inside DWC.
      Repo

      chimaeraghundefined 1 Reply Last reply Reply Quote 3
      • chimaeraghundefined
        chimaeragh @MintyTrebor
        last edited by

        @mintytrebor It would be nice if the web control was more modular and you could pick which modules to enable. I had to use your plugin to create a custom simpler interface because the default is too much for my needs. But the unecessary parts still load and take away from the user experience 243201782_10225569456919073_6443297781810908160_n.jpg 243169285_10225569456399060_6148114605962503494_n.jpg

        Duet 2 Wifi, Ooznest Workbee CNC 1510

        gloomyandyundefined 1 Reply Last reply Reply Quote 0
        • gloomyandyundefined
          gloomyandy @chimaeragh
          last edited by

          @chimaeragh I've not used the button plugin, but perhaps it would help the developers of both that and the main part of DWC if you could explain a little more as to what parts of your current setup you find unnecessary and how they take away from the user experience?

          theKMundefined chimaeraghundefined 2 Replies Last reply Reply Quote 0
          • theKMundefined
            theKM @gloomyandy
            last edited by

            @gloomyandy ...I've never once been on the filaments screen, even when using my 3d printer. My CNC doesn't even know what a filament is but that screen is still there. Similarly I've never used the macro screen as I set up macros and such to launch off buttons from my own button plugin, which also takes over from the Dashboard... three whole screens I'd like to have removed from the menu.

            1 Reply Last reply Reply Quote 1
            • chimaeraghundefined
              chimaeragh @gloomyandy
              last edited by

              @gloomyandy Other than Files --> Jobs, the above screenshots are the only interface elements I would usually need to control my Duet from my phone. The other parts of Web Control still load and add to memory usage causing some lag. Also this plugin interface is not the default when I open DWC, I still have to find the plugin in the side panel and open it from there. Then I have to click the icon to hide the rest of the interface.
              When a job starts the interface automatically switches to Job Status which is not really optimised for my use case. I prefer the first screenshot as I only need to pause or see the time remaining when I start a job on my CNC. Speed factor and baby stepping can be handled by the BtnCmd plugin but I don't need Layer Height, Filament, Extruder etc when running a job. It makes finding the information you need more difficult. I would propose hiding unpopulated labels from showing in DWC. That should give a cleaner interface.

              Duet 2 Wifi, Ooznest Workbee CNC 1510

              1 Reply Last reply Reply Quote 1
              • oozeBotundefined
                oozeBot @Dr_Ju_Ju
                last edited by

                @dr_ju_ju said in DWC Custom Configuration:

                Is there any way to easily customise the DWC pages, without reverting to additional HTTP pages etc ??

                I especially want to get rid of the ridiculous/superfluous three boxes at the top of every screen, two which are effectively displaying the same information !!

                Our thought was to modify it like the side menu with a button that toggles its visibility, but we haven't got around to messing with it yet.

                theKMundefined 1 Reply Last reply Reply Quote 0
                • theKMundefined
                  theKM
                  last edited by theKM

                  I have my menu driving by configuration now; can place and configure where the default pages sit (and omit if not desired; macros and filaments pages removed below), place plugins into specific order (my "move it move it" is a plugin)... I just need to get it loading out of the vuex settings loader and backwards compatability for plugin registration so they can keep working as-is...

                  4aff5cd7-0a31-43ad-bc96-e373f2c3d1c0-image.png

                  1 Reply Last reply Reply Quote 1
                  • theKMundefined
                    theKM @oozeBot
                    last edited by theKM

                    @oozebot ...there's already a button in the top right that does it, but for some reason is set to hide on large screens.

                    oozeBotundefined 1 Reply Last reply Reply Quote 0
                    • oozeBotundefined
                      oozeBot @theKM
                      last edited by

                      @thekm I was referring to adding a second button (like the one that exists for the menu) to hide/show the Status, Tools, and Temp Chart..

                      theKMundefined 1 Reply Last reply Reply Quote 0
                      • theKMundefined
                        theKM @oozeBot
                        last edited by theKM

                        @oozebot ...it just sounds like this green button is exactly what you're describing... because it toggles the Status component, etc (the same way that the menu button works)...

                        b46eabf1-e4d2-4a09-a532-4e6308eadfc2-image.png

                        I was thinking the same thing, until I was messing with the UI yesterday, resized to smaller browser to test responsiveness of something and there it was.

                        oozeBotundefined 1 Reply Last reply Reply Quote 0
                        • oozeBotundefined
                          oozeBot @theKM
                          last edited by

                          @thekm hmm - never noticed that! Unfortunately, that's only visible when the window is quite small.. and it looks like it reverts when the window is resized. I'll mess with it in code when I have a chance.

                          Thanks for pointing it out!

                          theKMundefined 1 Reply Last reply Reply Quote 0
                          • theKMundefined
                            theKM @oozeBot
                            last edited by theKM

                            @oozebot ...three line change to have it stay put all the time; in App.vue, remove "hidden-md-and-up" from the button, and "|| $vuetify.breakpoint.mdAndUp" from the panel container and divider.

                            1 Reply Last reply Reply Quote 1
                            • theKMundefined
                              theKM
                              last edited by theKM

                              Messing with menu config after work...

                              • config comes from and stored in 'dwc-settings.json' along with everything else
                              • default works as-is, nobody will know anything is different until they tweak the config of it themselves
                              • complete control over the menu; change the order of it, flatten it (remove the groupings), add buttons that run gcode including adding them to submenus, create submenus, change the icons and colours (yup, can have a menu of macros that run directly from the menu, because why not!? )
                              • internally the system pages are tweaked how they register in to the menu, but no-change for existing plugins to be able to plonk them somewhere specific by configuration.

                              Good fun. 🙂

                              90e1c98b-3760-4ae6-a3c0-ac794779c167-image.png

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