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.
    • moth4017undefined
      moth4017 @MintyTrebor
      last edited by

      @mintytrebor

      thanks for the reply, do you know of a plug in the will accept the http requests, i think i can do the esp sketch , but not sure about the DWC plugin.

      cheers
      Mark

      <

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

        @moth4017 You don't need a plugin for the http commands, that is native RRF/DWC
        functionality

        To display the values of the variables you can either use the object model browser plugin or BtnCmd.

        There is a third option which would be to just display the current sensor values in a web page served by the esp32 board, then embedd the webpage into dwc using BtnCmd's remote panel feature.
        This is an example remote panel, with a web page from an esp32 running tasmota:
        e075f48c-948f-41d9-8b05-64d932802296-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

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

          @mintytrebor

          Ok ESP code written , can send http string, now for the next stage .. is there and easy test to do to see if i can send data to DWC without a plug in?

          I need to do this step by step .. its not my strongest subject 🙂

          <

          MintyTreborundefined 1 Reply Last reply Reply Quote 0
          • 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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA