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

BtnCmd-DWC Plugin - Customise DWC - v01.03.08 01-03-25

Scheduled Pinned Locked Moved
Plugins for DWC and DSF
27
244
38.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.
  • undefined
    MintyTrebor @Diamondback
    last edited by 21 Oct 2021, 07:08

    @diamondback Try clicking the bring to the front button, and save. Then refresh the browser.

    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

    undefined 1 Reply Last reply 21 Oct 2021, 07:09 Reply Quote 0
    • undefined
      Diamondback @MintyTrebor
      last edited by 21 Oct 2021, 07:09

      @mintytrebor Looks like deleting and re-adding the text solved that issue.
      If the empty panel + extra panel for text is the desired way of doing header, can you maybe default the layer of the panels to be at the bottom rather than the top?
      Atm, when you add such a background to an existing panel, it covers everything and every single button needs to be brought to the top manually.

      undefined 1 Reply Last reply 21 Oct 2021, 07:13 Reply Quote 0
      • undefined
        Diamondback @MintyTrebor
        last edited by 21 Oct 2021, 07:09

        @mintytrebor said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.9.04 20-10-21:

        @diamondback Try clicking the bring to the front button, and save. Then refresh the browser.

        I tried that before, no luck. Only deleting and adding again had any effect.

        1 Reply Last reply Reply Quote 0
        • undefined
          MintyTrebor @Diamondback
          last edited by MintyTrebor 21 Oct 2021, 07:13

          @diamondback said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.9.04 20-10-21:

          If the empty panel + extra panel for text is the desired way of doing header, can you maybe default the layer of the panels to be at the bottom rather than the top?

          No.

          But it should be respecting the layering order you specify. So this may be another bug in the custom panel code. I'll look into it.

          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

          undefined 1 Reply Last reply 21 Oct 2021, 07:15 Reply Quote 0
          • undefined
            Diamondback @MintyTrebor
            last edited by 21 Oct 2021, 07:15

            @mintytrebor It does respect the layering, it's just that it starts out at the very top. So in my case with these buttons, I need to bring all the buttons to the front again. Not a big deal, just not ideal from a usage POV 👍

            undefined 1 Reply Last reply 21 Oct 2021, 07:25 Reply Quote 0
            • undefined
              MintyTrebor @Diamondback
              last edited by MintyTrebor 21 Oct 2021, 07:25

              @diamondback I'm referring to this issue you mentioned earlier...

              87308a53-bdb8-4752-8afe-43d8de7e7a40-image.png

              If the text is on the top in edit panel mode it should be on the top in layout mode...
              You should not need to delete and re-add it to make it display on the top.

              Update : Found & fixed the bug. I'll include it on the next release, which will be in a few days.

              And just to explain the 'No' to your request.

              If each new button or panel is added at the bottom (lets call this layer 1), then every time a user adds a new button/panel the following actions would need to be undertaken:

              1. Every existing button/panel on screen would have to be updated to increase its current layer by +1, before adding the new button/panel to the screen, to maintain the existing layer structure.
              2. BtnCmd would then need to identify a blank space on the screen, large enough to accommodate the new button/panel, so that is was not rendered behind existing buttons/panels. Otherwise the user may not be able to "access" the new button/panel to move/edit/resize it. Plus, if there wasn't any free space to put the new button/panel, it would have to re-arrange all the existing buttons/panels positions automatically to create blank space, and do this whilst trying to retain the layout the user has created.

              Whilst 1 is possible, 2 is not a good idea under any conditions. A send to back function may be possible, so I will look into it.

              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

              undefined undefined 2 Replies Last reply 21 Oct 2021, 09:14 Reply Quote 1
              • undefined
                Diamondback @MintyTrebor
                last edited by 21 Oct 2021, 09:14

                @mintytrebor said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.9.04 20-10-21:

                And just to explain the 'No' to your request.

                If each new button or panel is added at the bottom (lets call this layer 1), then every time a user adds a new button/panel the following actions would need to be undertaken:

                1. Every existing button/panel on screen would have to be updated to increase its current layer by +1, before adding the new button/panel to the screen, to maintain the existing layer structure.
                2. BtnCmd would then need to identify a blank space on the screen, large enough to accommodate the new button/panel, so that is was not rendered behind existing buttons/panels. Otherwise the user may not be able to "access" the new button/panel to move/edit/resize it. Plus, if there wasn't any free space to put the new button/panel, it would have to re-arrange all the existing buttons/panels positions automatically to create blank space, and do this whilst trying to retain the layout the user has created.

                Whilst 1 is possible, 2 is not a good idea under any conditions. A send to back function may be possible, so I will look into it.

                That's perfectly understandable, another button to reduce the layer would be fine as well 👍

                1 Reply Last reply Reply Quote 0
                • undefined
                  cosmowave @MintyTrebor
                  last edited by 5 Nov 2021, 11:10

                  @mintytrebor It will be nice to be able to change the background color of the "standard charts" (e.g. temp chart)...
                  The "normal temp chart" has a light grey backcolor, in btnCmd the temp chart backcolor is black (or transparent?). For me, the standard grey one is easier readable...

                  Mankati FSXT+, DeltaTowerV2, E3D MS/TC

                  undefined 2 Replies Last reply 5 Nov 2021, 11:16 Reply Quote 0
                  • undefined
                    MintyTrebor @cosmowave
                    last edited by 5 Nov 2021, 11:16

                    @cosmowave Never noticed it, but it is the same for most of the other DWC panels - I'll look into it.

                    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

                    1 Reply Last reply Reply Quote 1
                    • undefined
                      MintyTrebor @cosmowave
                      last edited by 5 Nov 2021, 14:11

                      @cosmowave Published Beta 0.9.06

                      Changes:
                      Fixed Text issue in custom panels.
                      Fixed background colour of the Standard DWC panels to be the same as the default theme (light/dark)

                      e1d988d9-d4f0-47c8-8560-729d210258ac-image.png

                      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

                      undefined 1 Reply Last reply 5 Nov 2021, 14:23 Reply Quote 1
                      • undefined
                        cosmowave @MintyTrebor
                        last edited by 5 Nov 2021, 14:23

                        @mintytrebor wow... that was realy fast! 🤠
                        Thanks. I will test it today evening.

                        Mankati FSXT+, DeltaTowerV2, E3D MS/TC

                        undefined 1 Reply Last reply 5 Nov 2021, 19:34 Reply Quote 0
                        • undefined
                          cosmowave @cosmowave
                          last edited by cosmowave 11 May 2021, 19:35 5 Nov 2021, 19:34

                          @MintyTrebor It works. And for me in dark mode it's much better readable now.
                          Thanks! 👍

                          Mankati FSXT+, DeltaTowerV2, E3D MS/TC

                          1 Reply Last reply Reply Quote 1
                          • radiomodellundefined
                            radiomodell
                            last edited by 18 Dec 2021, 22:14

                            This plugin is great. I modified DWC1.22 with a lot of effort to make it more suitable for CNC and Laser mode.
                            With this plugin I was able to nearly "rebuild" former functionality in no time. The only thing I am missing is an option to put a text(number) input to a global variable. Or did I miss something?

                            DWC1.22.JPG

                            Here is the part of a screenshot of the old DWC.

                            I use a standalone Duet2 Ethernet with Firmware Release 3.4.0 beta 7, Duet Web Control 3.4.0-b7 and BtnCmd-DWC Plugin v0.9.06

                            undefined 1 Reply Last reply 19 Dec 2021, 07:47 Reply Quote 0
                            • undefined
                              MintyTrebor @radiomodell
                              last edited by MintyTrebor 19 Dec 2021, 07:47

                              @radiomodell I'm glad you find it useful.

                              I'm currently working on Beta 0.10.01 right now to address some issues with the changes introduced in DWC 3.4b7, if I am able to add a way of setting global variables then I will do so (but no promises 😁).

                              As a workaround you may be able to use a similar approach as described here.

                              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

                              1 Reply Last reply Reply Quote 0
                              • radiomodellundefined
                                radiomodell
                                last edited by 19 Dec 2021, 14:45

                                @MintyTrebor Thanks for the fast reply.

                                I will try the workaround. Please no extra hurry. I will be patient.

                                undefined 1 Reply Last reply 21 Dec 2021, 16:45 Reply Quote 0
                                • undefined
                                  MintyTrebor @radiomodell
                                  last edited by 21 Dec 2021, 16:45

                                  Version Beta 0.10.02 for DWC 3.4b7 has been published in my repo.

                                  Changes:

                                  • Fixed layout mode issues in custom panels.
                                  • Added new Global Variable Input Panel - Allows you to update pre-defined Global Variables in the UI
                                  • Changed how BtnCmd works with Mobile Resolutions. BtnCmd's mobile UI now triggers at higher resolutions in line with DWC.
                                  • Removed Height Adjuster in Global Settings. - Available layout space will now be a fixed size for the device/resolution size you are using.

                                  Please review the release notes before upgrading as there have been significant behind the scenes changes to align BtnCmd with DWC's new mobile UI changes.

                                  Note: To use the new Global Variable input panel, the variable must already be created in the normal methods.

                                  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

                                  radiomodellundefined 3 Replies Last reply 21 Dec 2021, 20:48 Reply Quote 1
                                  • radiomodellundefined
                                    radiomodell @MintyTrebor
                                    last edited by 21 Dec 2021, 20:48

                                    @mintytrebor You are fast! I will try new version of plugin tomorrow.

                                    Here is my actual status that still needs some fine tuning.

                                    4140415a-f8f6-4474-85ef-df60bed29563-image.png

                                    I really like the flexibility given by the plugin.

                                    1 Reply Last reply Reply Quote 2
                                    • radiomodellundefined
                                      radiomodell @MintyTrebor
                                      last edited by 22 Dec 2021, 19:12

                                      @mintytrebor The Global Variable Input Panel works well for me.
                                      Just replaced the Object Mode Value panel. The Input Panel works as both,display and input.
                                      Pressing Enter transfers input to the global variable.
                                      Configured as string input it accepts numbers also. But comas are not converted to dots as in number configuration.

                                      Thanks for the fast modification

                                      1 Reply Last reply Reply Quote 0
                                      • radiomodellundefined
                                        radiomodell @MintyTrebor
                                        last edited by 23 Dec 2021, 17:29

                                        @mintytrebor I would like to add two points to the wish list after a while of testing:

                                        • Is it possible to switch to last active BtnCmd Panel after starting a job? Standard is switching to the Status panel.
                                        • Is it possible to change color of Object Model panels and Global Variable Input panels dependent on conditions? Like "HOME X" button in Dashboard. It is orange until it changes to blue when homed.

                                        And please no hurry! It is short before Christmas.

                                        undefined 2 Replies Last reply 23 Dec 2021, 17:57 Reply Quote 0
                                        • undefined
                                          MintyTrebor @radiomodell
                                          last edited by MintyTrebor 23 Dec 2021, 17:57

                                          @radiomodell @radiomodell said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.10.02 21-12-21:

                                          Is it possible to switch to last active BtnCmd Panel after starting a job? Standard is switching to the Status panel.

                                          That is standard DWC operating behaviour - even if I could change it, I'm reluctant to mess with the way DWC operates.

                                          Changing colour might be possible for OM Panels/Inputs, but its likely to be a significant amount of work, I'll add to the wish list.

                                          In your previous post you mentioned...

                                          @radiomodell said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.10.02 21-12-21:

                                          Configured as string input it accepts numbers also. But comas are not converted to dots as in number configuration.

                                          I believe this is standard behaviour (I do not do any manipulation other than to check that the entered value is a Number if you have set the OM Input Panel properties to be a number). Try using the set global with and without quotes eg:

                                          set global.#### = "1234.5"

                                          and

                                          set global.#### = 1234.5

                                          Check the object model browser and you will see that the first example is shown in quotes, and the second is not. One is a string the other is a number. A number in a string, is still a string, and will not get modified.

                                          BtnCmd uses the same command as above to set global variables. So it should behave the same way as if you were to enter it manually, or via a macro.

                                          Forgot to add I have not yet implemented the ability to allow variables to be assigned with other object model values by reference or other expressions - I do plan to add that capability later.

                                          Thanks for the feedback.

                                          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

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