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.4k
    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 @Stephen6309
      last edited by

      @stephen6309 I have just pushed 0.8.17 Alpha to github.
      If you open global settings and disable the "Selections in Settings" option, all of the drop downs will switch to radio buttons.

      You may still experience a few hover/tooltip issues.

      The overall issue appears to be a plugin system or framework bug, which occurs at the local level and does not affect every user. Unfortunately I am unable to correct this issue within my plugin as there no options available to me to change this behaviour as it is part of the core bootstrap/vue system used by DWC. The fact you had an issue installing the plugin the first time, is a new data point I did not have before.

      If any others are having this issue please can you let me know, or post an issue on github. I would really like to get the bottom of the issue - I want to know if its my stupid mistake, or something else.😊

      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
      • MintyTreborundefined
        MintyTrebor @tristanryerparke
        last edited by MintyTrebor

        @tristanryerparke The three ### is a placeholder I put in the code to tell you/me when the system is unable to match the Model Path you entered in the current machine model resident in DWC. Which means 1 of three things..

        1. The active machine model in DWC does not always contain all of the object model at the same time, some values may only be available during print etc.

        2. I'm using the wrong machine object model resident in DWC or DWC does not load global variables in its default object model and I have to supplement the default model with global variables in my plugin code.

        3. You have entered the wrong path - but given this is exclusive to a particular class of object I doubt this very much.

        Could you give me an example path you are using please, then I track it down.

        Edit - Also any chance of a screen shot? I would like to see how your using 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

        Stephen6309undefined 1 Reply Last reply Reply Quote 0
        • Stephen6309undefined
          Stephen6309 @MintyTrebor
          last edited by

          @mintytrebor v0.8.17 works with Selections in Settings off.

          1 Reply Last reply Reply Quote 0
          • MintyTreborundefined
            MintyTrebor @tristanryerparke
            last edited by

            @tristanryerparke I ran some tests by creating my own global variables using the

            global <new-variable-name> = <expression>
            

            command.

            In the OMB plugin it looks like this:
            Screenshot 2021-04-25 090220.png

            I set up a new Model Panel in BtnCmd like this:

            Screenshot 2021-04-25 090141.png

            Which worked OK.

            Screenshot 2021-04-25 090043.png

            Is this what you did/expected, or am I missing something?

            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

            OwenDundefined tristanryerparkeundefined 2 Replies Last reply Reply Quote 0
            • OwenDundefined
              OwenD @MintyTrebor
              last edited by

              @mintytrebor
              It works for me, although didn't at first because I accidentally copied a trailing space when I copied it from the OM browser.
              The only problem is that the DWC global variable values aren't updated at the moment.
              The dev's are aware, so it will likely be fixed in the next beta.

              MintyTreborundefined 1 Reply Last reply Reply Quote 1
              • MintyTreborundefined
                MintyTrebor @OwenD
                last edited by

                @owend Great! Thanks for letting me know.

                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
                • tristanryerparkeundefined
                  tristanryerparke @MintyTrebor
                  last edited by tristanryerparke

                  @mintytrebor I'm going through the same process:
                  First sending:

                  global testBTN = 40
                  

                  Checking in OM browser (refreshed a few times to be sure):
                  Screen Shot 2021-04-25 at 1.50.26 PM.png

                  Then setting up the panel:
                  Screen Shot 2021-04-25 at 1.51.07 PM.png
                  I checked for trailing spaces and made sure they were not there.
                  Still getting "###":
                  Screen Shot 2021-04-25 at 1.51.23 PM.png
                  Also I tried sending this command:

                  set global.testBTN = 45
                  

                  To see if it would update the value in the panel, but still have "###".
                  Are you guys in standalone mode/duet2? I'm running an SBC.
                  Cheers,
                  T

                  MintyTreborundefined 1 Reply Last reply Reply Quote 0
                  • MintyTreborundefined
                    MintyTrebor @tristanryerparke
                    last edited by MintyTrebor

                    @tristanryerparke I'm using a stand alone config on a duet2. That may account for the variance??

                    In principle DWC is the same for both versions - however there maybe some differences in the way the machine model is retrieved in the backend.

                    In the plugin I am not retrieving the model, I am using the one that is already resident in DWC, so I will have to do some digging to see what I can find out. Its unlikely to be a speedy process though.

                    Update: I've just spotted this post https://forum.duet3d.com/post/227873, which seems related to this issue. Looks like its an SBC issue.....

                    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
                    • tristanryerparkeundefined
                      tristanryerparke
                      last edited by tristanryerparke

                      @MintyTrebor With the 3.3rc1 update globals are now displaying correctly in btncmd!
                      Would it be possible to have a color option for the Object Model panel?
                      Or a color switch based upon value like the z-probe status in DWC?
                      Also, what about a secondary organization structure in which buttons and panels could be grouped? Kind of like this on the DWC dashboard:
                      Screen Shot 2021-05-03 at 1.28.27 AM.png
                      Just some suggestions, I'm really loving this plugin so far.
                      Much simpler than my previous node-red dashboard setup.
                      Thanks,
                      T

                      MintyTreborundefined 1 Reply Last reply Reply Quote 1
                      • MintyTreborundefined
                        MintyTrebor @tristanryerparke
                        last edited by

                        @tristanryerparke Good news that the global variables are working for you now! I will have a look at setting the panel colour in the next release. Conditional colours & grouping I will have to look into.

                        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
                        • madeinta1wanundefined
                          madeinta1wan
                          last edited by

                          HI @MintyTrebor ,

                          Have you ever come across an error like this:

                          Installation failed!

                          InvalidOperationException in InstallPlugin: Cannot perform command because the plugin service is not started

                          Screenshot 2021-05-03 164950.png

                          I was running 3.2.2 (this is all in SBC mode) and tried to install Alpha 0.8.17 which wouldn't work and so I upgraded DWC to 3.3.0-rc1 and then this error occurred.

                          Just tried Alpha 0.8.16 in case and got the same error.

                          Thanks-

                          Nate

                          MintyTreborundefined 1 Reply Last reply Reply Quote 0
                          • MintyTreborundefined
                            MintyTrebor @madeinta1wan
                            last edited by

                            @madeinta1wan see : https://forum.duet3d.com/post/219064
                            You need to install/enable the plugin service.

                            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

                            madeinta1wanundefined 1 Reply Last reply Reply Quote 1
                            • madeinta1wanundefined
                              madeinta1wan @MintyTrebor
                              last edited by

                              @mintytrebor 👍 👍 👍

                              Thanks

                              1 Reply Last reply Reply Quote 0
                              • MartinNYHCundefined
                                MartinNYHC
                                last edited by MartinNYHC

                                Very nice and useful. Thanks for your work!

                                With Firefox when adding a new button the select "Type" does not expand. With up/down buttons it is possible to change the field value.

                                Screenshot 2021-05-07 at 18.15.27.png

                                And in addition may I place a feature request? 😉 Would be nice to have a button type to execute a command line script/command.

                                MintyTreborundefined 1 Reply Last reply Reply Quote 0
                                • MintyTreborundefined
                                  MintyTrebor @MartinNYHC
                                  last edited by

                                  @martinnyhc That looks like you have this issue here https://forum.duet3d.com/topic/22403/weird-dwc-z-index-dialogue-issue/6
                                  Its a localised issue, the solution is in the the thread I linked. You can either do the proper fix or go into BtnCmd global settings and disable selects, which will turn every drop down into radio buttons as a work around.

                                  With your feature request can I assume you are running a DSF/SBC configuration?

                                  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
                                  • MartinNYHCundefined
                                    MartinNYHC
                                    last edited by

                                    Changed global setting and that's fine.

                                    And yes.....SBC always because I like it 😉

                                    1 Reply Last reply Reply Quote 0
                                    • MartinNYHCundefined
                                      MartinNYHC
                                      last edited by

                                      Oh yes....I could use a custom GCODE and use the execoncommand plugin but for example I would like to change something in the current GCODE file. So at least I need to pass a variable for the filename.

                                      MintyTreborundefined 1 Reply Last reply Reply Quote 0
                                      • MintyTreborundefined
                                        MintyTrebor @MartinNYHC
                                        last edited by MintyTrebor

                                        @martinnyhc I'm not planning to do anything with SBC only plugin features until the plugin framework has been finalised, and does not require manual user steps to enable/get working. But I will add your request to the wish list. In the meantime you can always use another solution for running linux commands, triggered with a mqtt/http button in BtnCmd. Home Assistant & Node-Red spring to mind.

                                        By way of a general update I will be publishing the following new functions on the next release (aiming for this weekend if testing goes ok).

                                        Colour options & vertical/horizontal layout option for Model Value Panels
                                        Screenshot 2021-05-07 174226.png

                                        Create Custom Panels - Design a new panel layout then use within a normal layout. Useful for grouping layouts etc.
                                        Screenshot 2021-05-07 174024.png

                                        Screenshot 2021-05-07 174053.png

                                        Screenshot 2021-05-07 173918.png

                                        Also made a few small UI changes and the normal round of bug fixes etc.

                                        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
                                        • MartinNYHCundefined
                                          MartinNYHC
                                          last edited by MartinNYHC

                                          Yeah, already thought about MQTT. Thanks!

                                          1 Reply Last reply Reply Quote 0
                                          • stuartofmtundefined
                                            stuartofmt
                                            last edited by stuartofmt

                                            DuetMonitor may be useful to some users of BtnCmd - so herewith a shameless plug ..

                                            One of its capabilities is to send an email - independent of its monitoring function. The monitoring function can be disabled - at which point its an email sending program.

                                            https://forum.duet3d.com/topic/23282/duetmonitor

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