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

    Write a plugin for DWC- solved using BtnCmd.

    Scheduled Pinned Locked Moved
    Duet Web Control
    3
    79
    4.3k
    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 @moth4017
      last edited by MintyTrebor

      @moth4017 You will need to use the built in object model plugin to see global variables. Just enable it in DWC, you can then use it to view global.xxxxx variables.

      Follow the steps I previously posted, and watch for changes in the OM plugin. You can just type the http command into a browser to check your variable is setup and changes are visable, before you test your esp code.

      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

      moth4017undefined 1 Reply Last reply Reply Quote 0
      • moth4017undefined
        moth4017
        last edited by moth4017

        @mintytrebor

        thanks for the help only been using DWC for a few months , so the helps great thank you.
        Have started the "object modle " will try out the global Vars and Http later

        <

        1 Reply Last reply Reply Quote 0
        • moth4017undefined
          moth4017 @MintyTrebor
          last edited by

          @mintytrebor

          ok that worked updated the global variable , i also got a return of {"buff":228}
          Now how do i display that variable in DWC, is that possible?

          <

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

            @moth4017 https://github.com/MintyTrebor/BtnCmd/wiki/Object-Model-Value-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

            moth4017undefined 1 Reply Last reply Reply Quote 0
            • moth4017undefined
              moth4017 @MintyTrebor
              last edited by

              @mintytrebor

              Do i have to add the BtmCmd plugin now?

              <

              jay_s_ukundefined MintyTreborundefined 2 Replies Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk @moth4017
                last edited by

                @moth4017 yes

                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

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

                  @moth4017 Your choices are to use the object model plugin to see the variables eg:
                  74c384dd-0f9f-4755-bddc-bd4925a21cf7-image.png
                  or use BtnCmd to display them eg:
                  d68feff5-5cb3-4767-b7af-3353209dd3f9-image.png

                  Read the BtnCmd wiki for instructions on how to install & use 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

                  moth4017undefined 1 Reply Last reply Reply Quote 0
                  • moth4017undefined
                    moth4017 @MintyTrebor
                    last edited by

                    @mintytrebor

                    ok BtmCmd installed , i have the object model value 'global.spoolWeight' but i carnt find the Object Model Value Panel? where do i access that?

                    <

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

                      @moth4017

                      Click the show settings button (cog) in the bottom right of the BtnCmd window
                      Click the green "create & edit layouts" button
                      Click the "add new panel" button
                      Select object model panel, and click enter settings

                      Read the Wiki for more details

                      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

                      moth4017undefined 1 Reply Last reply Reply Quote 0
                      • moth4017undefined
                        moth4017 @MintyTrebor
                        last edited by

                        @mintytrebor
                        4293fba5-54fd-4969-8553-5326e866396e-image.png

                        <

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

                          @moth4017 Did you start the plugin after you installed 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

                          moth4017undefined 1 Reply Last reply Reply Quote 0
                          • moth4017undefined
                            moth4017 @MintyTrebor
                            last edited by

                            @mintytrebor
                            Not listed in the Plugin list
                            f9c29406-a320-4825-8a6c-d174e613edf7-image.png

                            <

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

                              @moth4017 external plugins tab

                              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

                              moth4017undefined 2 Replies Last reply Reply Quote 0
                              • moth4017undefined
                                moth4017 @MintyTrebor
                                last edited by

                                @mintytrebor Just noticed ..Doh ..

                                <

                                1 Reply Last reply Reply Quote 0
                                • moth4017undefined
                                  moth4017 @MintyTrebor
                                  last edited by moth4017

                                  @mintytrebor

                                  Thank you
                                  46d09587-9b84-4ee1-9afb-c88858acebd6-image.png

                                  <

                                  jay_s_ukundefined MintyTreborundefined 2 Replies Last reply Reply Quote 0
                                  • jay_s_ukundefined
                                    jay_s_uk @moth4017
                                    last edited by

                                    @moth4017 will you share your ESP code once its working?

                                    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

                                    moth4017undefined 2 Replies Last reply Reply Quote 0
                                    • moth4017undefined
                                      moth4017 @jay_s_uk
                                      last edited by

                                      @jay_s_uk
                                      Hi yes it will be all shared , plus we will also put in the acknowledgements and web links etc to all the other contributors

                                      <

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

                                        @moth4017 your welcome

                                        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 @moth4017
                                          last edited by

                                          @moth4017 If you want to - there is an import/export layout feature in BtnCmd, so you can include your BtnCmd layout with the esp code.

                                          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

                                          moth4017undefined 1 Reply Last reply Reply Quote 0
                                          • moth4017undefined
                                            moth4017 @jay_s_uk
                                            last edited by

                                            @jay_s_uk

                                            Im not a pro programmer so im hoping someone will sort out my inefficient code for me 🙂 , im going to spend the next few days putting together the hardware list and some code so i can get some testing done

                                            <

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