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.6k
    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 @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
                        • MintyTreborundefined
                          MintyTrebor @MintyTrebor
                          last edited by

                          Released 01.02.07 for DWC 3.5.0-rc.1

                          Added custom icons to Input and Text Panels
                          40304d20-6791-47fa-9912-75b662a9d265-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

                          1 Reply Last reply Reply Quote 6
                          • Phaedruxundefined Phaedrux referenced this topic
                          • nikschaundefined
                            nikscha
                            last edited by

                            I just found this plugin, I'm amazed! Keep up the good work!

                            Stay in school

                            fcwiltundefined 1 Reply Last reply Reply Quote 0
                            • fcwiltundefined
                              fcwilt @nikscha
                              last edited by

                              Hi,

                              Been using BtnCmd for a while. Compared to BtnCmd, sliced bread is no longer the best thing ever... it's toast. 🙄

                              Anyway I gather that those of us running RRF 3.4.x are stuck with an older version of BtnCmd - 0.10.15 - which I guess is not getting any updates?

                              It has a few bugs.

                              But my real question is does BtnCmd have, or while it have, or could it have a way to persist selected settings between sessions (power off to power on)?

                              That would be grand!

                              Frederick

                              Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

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

                                @fcwilt said in BtnCmd-DWC Plugin - Customise DWC - v01.02.07 17-09-23:

                                Anyway I gather that those of us running RRF 3.4.x are stuck with an older version of BtnCmd - 0.10.15 - which I guess is not getting any updates?

                                Correct - 3.5 introduced some major differences and as this is just a spare time project for me, I do not have the time to maintain 2 code bases.

                                When you say 'persist selected settings' do you mean changing the values of global variables via an input panel, 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

                                fcwiltundefined 1 Reply Last reply Reply Quote 0
                                • fcwiltundefined
                                  fcwilt @MintyTrebor
                                  last edited by fcwilt

                                  @MintyTrebor said in BtnCmd-DWC Plugin - Customise DWC - v01.02.07 17-09-23:

                                  Correct - 3.5 introduced some major differences and as this is just a spare time project for me, I do not have the time to maintain 2 code bases.

                                  And someday when 3.5 is ready for prime time I will move to it. I am not a fan of alpha, beta, gamma and RC releases. Even x.0 releases are best avoided. 😁

                                  When you say 'persist selected settings' do you mean changing the values of global variables via an input panel, or something else?

                                  I already use BtnCmd to manipulate global variables. It is a great feature.

                                  But it would be grand if certain of the values could be saved in some sort of non-volatile storage so when I come back the the printer the next day they are as I had set them using BtnCmd.

                                  Frederick

                                  Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

                                  Tinchusundefined 1 Reply Last reply Reply Quote 0
                                  • deckingmanundefined deckingman referenced this topic
                                  • Tinchusundefined
                                    Tinchus @fcwilt
                                    last edited by

                                    @fcwilt what if you ECHO those variables to a file, and in the next restart you just read thta file again in config.g. This is how Im doing now to store the total printing time of my printer and it works

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

                                      @Tinchus Can you give an example (code) of how this works in both situations (save and restore values)? I am trying to achieve something like this.
                                      Thanks

                                      Duet 2 Wifi, Ooznest Workbee CNC 1510

                                      Tinchusundefined 1 Reply Last reply Reply Quote 0
                                      • Tinchusundefined
                                        Tinchus @chimaeragh
                                        last edited by

                                        @chimaeragh Sure. For example, when I want to save the total uptime of the machine I execute count.g:
                                        echo >"uptime.g" "global.ontime =",{global.ontime + state.upTime/60}

                                        This saves in uptime.g the value of the global.ontime, and I get that value from the object model

                                        Next time the machine restarts, in config.g I have a M98 P"uptime.g", so the value of the global variable is read again and keeps being incremented.

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

                                          @Tinchus Thanks

                                          Duet 2 Wifi, Ooznest Workbee CNC 1510

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

                                            BtnCmd 01.03.0 for DWC 3.5 has been published on github here

                                            Changes Since 0.10.15 (DWC 3.4.6)

                                            • Global Settings - Removed option to toggle radio button instead of selects
                                            • Added New Custom Charts Panel (Wiki) - (Includes ability to save chart data to csv)
                                            • Added Support for Global Arrays in panels
                                            • Added Job Progress Bar Panel
                                            • OM Panel - Added Object Model Lookup feature
                                            • Input & Text Panels - Added function to add an material designs icons to the panels - user can define icon and colour size
                                            • Input Panel - New option to run GCode command post user input
                                            • Input Panel - New option to enable automatic acceptance of inputted values on focus change
                                            • OM Panel - New option to perform basic maths on OM numeric values
                                            • Alt WebCam Panel - Added Nozzle Alignment Overlay Feature
                                            • Fixed Bug in Colour Picker
                                            • Fixed Reset Settings function
                                            • Changed Startup behaviour to load all BtnCmd Tabs in background on first access, to start custom chart data capture without needing to switch to relevant tab
                                            • Global Settings - 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.
                                            • General non-critical javascript bug fixes

                                            Custom Charts:
                                            adafcea9-4c54-4d7d-bf19-9f45bab2e54d-image.png

                                            3f29e36a-c0f0-4462-8141-3553f6a30579-image.png

                                            Example Custom Icons:
                                            39905938-aa9b-4f0d-b974-f9a8566b6cbf-image.png

                                            Nozzle Alignment :
                                            b0207222-6d9b-4925-ac73-8d1fa543deac-image.png

                                            ede6e8d1-e51b-4561-8bd9-50b1aabeaa26-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

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