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
      80a76cd6-a7c3-4d8a-bc92-1e2a1f97ae5c-image.png

      <

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

        @moth4017 You have selected the wrong panel type - you have chosen global variable input panel - which is designed for updating the value of a global variable through user input, and does not apply any formatting.

        As per the previous post, the panel you need is "Object Model Panel" which is a display only panel. If you want to add text after the value (EG: KG) then add a "static text/label panel" ontop
        19b6690d-4b2e-4864-b257-489200a43f2c-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 0
        • moth4017undefined
          moth4017 @MintyTrebor
          last edited by

          @mintytrebor

          Hi , i did all the new set up for the DWC layout from a laptop on my LAN, i went to the PC where i have my printer opened up DWC and the new layout isnt there , but its still on the laptop. are these changes not saved to the Duet SD card?

          <

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

            @moth4017 they are per browser. you can backup and restore your layouts between PC's. See here https://github.com/MintyTrebor/BtnCmd/wiki/Backup-&-Restore

            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 1 Reply Last reply Reply Quote 0
            • moth4017undefined
              moth4017 @jay_s_uk
              last edited by

              @jay_s_uk

              Can this be changed so its local to the Duet card, i use multiple devices , i can live with it at the moment but is it something that could change in the future?

              <

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

                @moth4017 one for @MintyTrebor to answer

                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 As it states in the wiki, the backup file is saved to the Duet SD card System folder. You can restore the backup on any browser from there.

                  BtnCmd is a browser plugin ALL data is stored in your browser unless you make a backup or use the export feature.

                  If you are asking if a layout can be automatically restored when BtnCmd is loaded for the first time - I have already added the code to enable an "Auto Restore" feature which will load a defualt layout/config from the sd card on first access of BtnCmd. This will be in the next release.

                  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

                    excellent.. when are you hoping to do the next release? dont get me wrong im very happy to even get this far.

                    <

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

                      i have an issue with my esp at the moment its sending out
                      [EasyHTTP] POST http://192.168.0.19/rr_gcode?gcode=set global.spoolWeight=1234 500

                      not sure why its adding the 500 at the end

                      <

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

                        @moth4017 said in Looking for someone to write a plugin for DWC:

                        excellent.. when are you hoping to do the next release? dont get me wrong im very happy to even get this far.

                        Probably within the next couple of weeks

                        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 moth4017

                          @mintytrebor

                          Hi is there any reason why all the layouts disappeared when i took out the sd card and put it back in again?

                          also when doing a http "post" i get an error message saying see console, but there is nothing there? but the post works correctly .

                          acf1e5df-7d88-413c-8f61-d485f6991513-image.png

                          <

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

                            @moth4017 said in Looking for someone to write a plugin for DWC:

                            Hi is there any reason why all the layouts disappeared when i took out the sd card and put it back in again?

                            No. BtnCmd only uses the SD card for backup/restore or AutoBackup. Loss of layouts normally are caused by IP address changes, or clearing browser cache.

                            The error msg is referring to the browser developer console not the gcode console (I need to make that clearer in the error msg). Turn on developer tools in the browser, and see what error msg is generated when you click the button.

                            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 MintyTreborundefined 2 Replies Last reply Reply Quote 0
                            • moth4017undefined
                              moth4017 @MintyTrebor
                              last edited by

                              @mintytrebor
                              cheers for the reply , it looks like it will be my browser cache as every time my PC starts it clears out the cache..

                              so im playing around with the Global Variable Input Panels (Change/update the value of global variables)

                              ive set a "Edit Input Panel Settings" and set the global variable name , when i enetr a number then hit return i get this error message "
                              236b1f48-067f-4fff-a060-e2c13cbd9642-image.png

                              <

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

                                @mintytrebor you don't need to specify "global." in the variable name. Its added automatically as you can only update global variables. Just put the variable name in.

                                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 works perfect now thanks

                                  <

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

                                    @moth4017 9c845d68-4513-4a6d-b6cf-17c0d16776c1-image.png

                                    <

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

                                      @moth4017

                                      hi what have i not done correct to post a "global value".
                                      ecfab63d-bf47-4a27-af33-cc0080903c81-image.png

                                      <

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

                                        @moth4017 I'm not sure if the HTTP post function is capable of using global variables. I'll have to check the code. Hopefully it won't be too much issue to add it for the next release.

                                        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

                                          thanks, is there away to display text, from a post from another device,

                                          e.g we have the esp32 that will send a message (http) to your plugin "remove empty spool" or "place calibration weight " up to 4 messages needed

                                          <

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

                                            @moth4017 I'm not sure why you could not use the same approach as you have already done with global variables. Global's can be strings, numbers, or boolean's. Set up a variable to receive the text string, update it in the same way you have done with the other variables from your esp, and display it in a Object Model 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

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