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.9k
    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.
    • CrazyCreatorundefined
      CrazyCreator
      last edited by CrazyCreator

      What ist the right MQTT Message and MQTT Topic for switching my shelly switch?

      Or can i find a tutorial for creating this button in BtnCmd?

      http://www.crazycreatorcube.com

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

        @CrazyCreator I do not own a shelly switch so I cannot advise.
        BtnCmd Wiki is available for reference.
        Have you tried using a http post/get button using the commands you identified yourself in your post: https://forum.duet3d.com/post/300999?

        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

        Nightowlundefined stuartofmtundefined 2 Replies Last reply Reply Quote 0
        • Nightowlundefined
          Nightowl @MintyTrebor
          last edited by

          Hi @MintyTrebor

          I looked at this earlier on in my CNC career(!) but have just started to 'play' with it to set up my own screens.

          I've stumbled on a couple of minor issues, which are probably of my own making, but how would you like me to ask you about them? On this forum or via PM?

          Thank you 👍

          Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
          I'm still on my learning curve, so take everything I say with caution!

          RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

          MintyTreborundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 0
          • MintyTreborundefined
            MintyTrebor @Nightowl
            last edited by

            @Nightowl Here is fine

            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

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

              @Nightowl we also have a BtnCmd support channel on the Teamgloomy discord if you're into that type of thing https://discord.gg/uS97Qs7

              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

              Nightowlundefined 1 Reply Last reply Reply Quote 0
              • Nightowlundefined
                Nightowl @MintyTrebor
                last edited by

                OK thanks, @MintyTrebor

                It's probably me, but when I try to design my own page, it looks like this, in design mode:

                Screenshot 2022-12-06 at 13.57.47.png

                ....but like this, when I Save and Exit:

                Screenshot 2022-12-06 at 13.57.59.png

                Weeble (does it have to be all caps?) reverts to Layout 1 and the Machine Movement window moves back to the LH upper corner.

                PS Sorry for the delay in responding. It seems I'm not receiving notifications from this thread (but I am subscribed!)

                Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                I'm still on my learning curve, so take everything I say with caution!

                RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                MintyTreborundefined 1 Reply Last reply Reply Quote 0
                • Nightowlundefined
                  Nightowl @jay_s_uk
                  last edited by

                  Thanks, @jay_s_uk, I'll check it out.

                  Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                  I'm still on my learning curve, so take everything I say with caution!

                  RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

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

                    @Nightowl said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.10.15 06-11-22:

                    It's probably me

                    I think it is 😉

                    The red text indicates you are creating a custom panel, not a page/tab layout. A custom panel is a way for you to design your own panel that can be used in multiple page/tab layouts.

                    When in edit mode there are two options
                    Create & Edit custom panels (red)
                    Create & Edit Layouts (Green)

                    This is all covered in the wiki

                    If you enter Create & Edit Layouts mode (green) you can rename the tab and place the movement panel wherever you like. You should also find if you select add custom panel there will probably be one called "WEEBLE" which will the the custom panel you have created.

                    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

                    Nightowlundefined 1 Reply Last reply Reply Quote 0
                    • Nightowlundefined
                      Nightowl @MintyTrebor
                      last edited by

                      @MintyTrebor said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.10.15 06-11-22:

                      I think it is

                      Ha! Told you! 😵

                      I'll get on it tomorrow - I'm frazzled at the moment (with other stuff!)

                      Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                      I'm still on my learning curve, so take everything I say with caution!

                      RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

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

                        @CrazyCreator

                        @MintyTrebor said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.10.15 06-11-22:

                        @CrazyCreator I do not own a shelly switch so I cannot advise.
                        BtnCmd Wiki is available for reference.
                        Have you tried using a http post/get button using the commands you identified yourself in your post: https://forum.duet3d.com/post/300999?

                        I own multiple shelly switches, I recommend them. I use one to remotely turn on / off my printer.
                        Use http get i.e. just "request" the url's you already identified. Post is not needed.

                        CrazyCreatorundefined 1 Reply Last reply Reply Quote 0
                        • CrazyCreatorundefined
                          CrazyCreator @stuartofmt
                          last edited by CrazyCreator

                          @stuartofmt said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.10.15 06-11-22:

                          I own multiple shelly switches, I recommend them. I use one to remotely turn on / off my printer.
                          Use http get i.e. just "request" the url's you already identified. Post is not needed.

                          What is your configuration on BtnCmd Settings?

                          Bildschirm­foto 2022-12-10 um 14.52.17.png

                          And this is the config for the button

                          Bildschirm­foto 2022-12-10 um 14.57.04.png

                          With this config i can switch the status of my shelly. 😉 but i see a error in DWC

                          Bildschirm­foto 2022-12-10 um 15.07.17.png

                          and how can i use this in my gcode for power off the printer after print?

                          http://www.crazycreatorcube.com

                          stuartofmtundefined MintyTreborundefined 2 Replies Last reply Reply Quote 0
                          • stuartofmtundefined
                            stuartofmt @CrazyCreator
                            last edited by

                            @CrazyCreator said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.10.15 06-11-22:

                            @stuartofmt said in [BtnCmd-DWC Plugin-Custom Layouts &

                            Use http get i.e. just "request" the url's you already identified. Post is not needed.

                            What is your configuration on BtnCmd Settings?

                            and how can i use this in my gcode for power off the printer after print?

                            My post was simply to remove any ambiguity about Get v Post. I do not have BtnCmd setup at the moment as I am in the process of rebuilding.

                            @MintyTrebor can likely resolve the question on the error code.

                            I switch off my printer using a different method that pre-dates BtnCmd. I'm unsure if there is a conditional http get based on an object model value. I recall there is one for http Post.
                            Its possible you could use http Post on Shelley. You could research that here:
                            https://shelly-api-docs.shelly.cloud/gen2/ComponentsAndServices/HTTP/

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

                              @CrazyCreator said in BtnCmd-DWC Plugin-Custom Layouts & Buttons - v0.10.15 06-11-22:

                              and how can i use this in my gcode for power off the printer after print?

                              You cannot - BtnCmd is browser only and does not interact with gcode in a job. Buttons can only be triggered through user interaction.

                              The error is likely due to the shelly returning JSON, or nothing at all. Try changing the 'Get Type' setting, and disable Show Result. If it still errors then try changing it to a POST type which should prevent BtnCmd expecting a return value.

                              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

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

                                @CrazyCreator
                                If you want to use a gcode to turn off the printer there are a couple of options you may try.

                                1. ExecOnMcode
                                  https://forum.duet3d.com/topic/29783/execonmcode-v0-1/31
                                2. DuetLapse3
                                  https://forum.duet3d.com/topic/20932/duetlapse3/200

                                Both can invoke a script or program. Your script could be a simple curl command to turn off the relay.

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

                                  Released v01.01.01 for DWC 3.5+

                                  Changes:

                                  • updated for dwc 3.5

                                  • fixed some minor bugs

                                  • removed option to toggle radio button instead of selects

                                  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

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

                                    Released v01.01.02 for DWC 3.5+

                                    Changes:

                                    • Custom Charts (Wiki)
                                    • Support for Global variable Arrays
                                    • OM Lookup for OM Panel

                                    611fa576-b4f8-4ee1-aeda-1ccf06de5368-image.png

                                    8b64b12e-7ac0-4184-a8a5-e92067f29f88-image.png

                                    With Custom Charts you can:

                                    • Add chart data lines from the Object Model, set scales, colour, & legends
                                    • Define X & Y axis options
                                    • Set Chart Update Frequency
                                    • Set Chart Name
                                    • Hover over chart data line data-points for popup info
                                    • Save the Chart Data to CSV file

                                    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

                                    Diamondbackundefined MintyTreborundefined 2 Replies Last reply Reply Quote 6
                                    • Diamondbackundefined
                                      Diamondback @MintyTrebor
                                      last edited by

                                      @MintyTrebor Very nice! Thank you! 🙂

                                      1 Reply Last reply Reply Quote 0
                                      • Phaedruxundefined Phaedrux referenced this topic
                                      • MintyTreborundefined
                                        MintyTrebor @MintyTrebor
                                        last edited by MintyTrebor

                                        Released v 01.02.02 for DWC 3.5

                                        Changes:
                                        Input Panel - option to run GCode command post user input
                                        OM Panel - option to perform basic maths on OM numeric values
                                        Fixed Bug in Colour Picker
                                        Fixed Reset Settings function

                                        Minor update - 01.02.02 - Update Bug fix to Input Panel

                                        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

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

                                          Released v 01.02.04 for DWC 3.5

                                          Changes:

                                          • Added precision to custom charts - Existing charts will need to be edited and saved, before the full precision options become available (this is in order to upgrade their config data).
                                          • Added toggle to show current value in legend for custom charts.
                                          • Changed behaviour to load all BtnCmd Tabs in background on first access, to start custom chart data capture without needing to switch to relevant tab
                                          • Added option to quickly switch to BtnCmd and return to DWC dashboard on DWC launch, to allow custom chart's to begin to capture data immediately.
                                          • Fixed intermittent issue where panels would occasionally jump off screen in edit mode.
                                          • Edit mode behaviour change - When entering/exiting edit mode, screen will remain on current tab, unless tab(s) have been deleted.

                                          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

                                          MintyTreborundefined 1 Reply Last reply Reply Quote 4
                                          • cosmowaveundefined cosmowave referenced this topic
                                          • infiniteloopundefined infiniteloop referenced this topic
                                          • MintyTreborundefined MintyTrebor referenced this topic
                                          • MintyTreborundefined
                                            MintyTrebor @MintyTrebor
                                            last edited by

                                            Released v 01.02.06 for DWC 3.5.0-rc.1 Only

                                            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

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