• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    moth4017 @MintyTrebor
    last edited by moth4017 7 Oct 2022, 09:29 10 Jul 2022, 09:11

    @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

    <

    undefined 1 Reply Last reply 10 Jul 2022, 09:31 Reply Quote 0
    • undefined
      MintyTrebor @moth4017
      last edited by 10 Jul 2022, 09:31

      @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

      undefined undefined 2 Replies Last reply 10 Jul 2022, 10:35 Reply Quote 0
      • undefined
        moth4017 @MintyTrebor
        last edited by 10 Jul 2022, 10:35

        @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
        • undefined
          MintyTrebor @MintyTrebor
          last edited by 10 Jul 2022, 10:37

          @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

          undefined 1 Reply Last reply 10 Jul 2022, 10:39 Reply Quote 0
          • undefined
            moth4017 @MintyTrebor
            last edited by 10 Jul 2022, 10:39

            @mintytrebor works perfect now thanks

            <

            undefined 2 Replies Last reply 10 Jul 2022, 10:47 Reply Quote 0
            • undefined
              moth4017 @moth4017
              last edited by 10 Jul 2022, 10:47

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

              <

              1 Reply Last reply Reply Quote 1
              • undefined
                moth4017 @moth4017
                last edited by moth4017 7 Nov 2022, 01:29 10 Jul 2022, 21:25

                @moth4017

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

                <

                undefined 1 Reply Last reply 11 Jul 2022, 06:27 Reply Quote 0
                • undefined
                  MintyTrebor @moth4017
                  last edited by 11 Jul 2022, 06:27

                  @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

                  undefined 1 Reply Last reply 11 Jul 2022, 06:38 Reply Quote 0
                  • undefined
                    moth4017 @MintyTrebor
                    last edited by 11 Jul 2022, 06:38

                    @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

                    <

                    undefined 2 Replies Last reply 11 Jul 2022, 06:42 Reply Quote 0
                    • undefined
                      MintyTrebor @moth4017
                      last edited by 11 Jul 2022, 06:42

                      @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
                      • undefined
                        MintyTrebor @moth4017
                        last edited by 11 Jul 2022, 13:28

                        @moth4017 I have just published the latest version with the following changes:

                        Changes:

                        • Enabled Auto Restore Feature - read more here
                        • New Experimental Feature for SBC users - read more here
                        • Added the ability to include object model values in MQTT msgs, and HTTP Post data - read more here

                        https://github.com/MintyTrebor/BtnCmd/releases

                        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

                        undefined 2 Replies Last reply 11 Jul 2022, 22:34 Reply Quote 1
                        • undefined
                          moth4017 @MintyTrebor
                          last edited by 11 Jul 2022, 22:34

                          @mintytrebor

                          Thanks will do testing today .

                          <

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            moth4017 @MintyTrebor
                            last edited by 12 Jul 2022, 04:23

                            @mintytrebor

                            re backup auto recovery
                            "By renaming a standard BtnCmd backup file to BtnCmdAutoRestore.json in the SDCard SYS folder, BtnCmd will load the file automatically when any of the above conditions are met."

                            The standard file name being "BtnCmdSettings" and rename this to BtnCmdAutoRestore.json is this correct?

                            I tried installing the new version over the top of the old one, first stopping the plugin , but my printer would not start after that so recreated the files on the SD card and installed the new version and thats working OK .

                            im getting this http message when i post this command
                            661283fe-5b7c-40b6-be5f-80e7c2816eda-image.png

                            <

                            undefined 1 Reply Last reply 12 Jul 2022, 05:58 Reply Quote 0
                            • undefined
                              MintyTrebor @moth4017
                              last edited by 12 Jul 2022, 05:58

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

                              The standard file name being "BtnCmdSettings" and rename this to BtnCmdAutoRestore.json is this correct?

                              It's whatever you named the backup file when you created it. The default backup file name is BtnCmdSettings.json.

                              In the img there is no post data - so it cannot post anything.

                              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

                              undefined 1 Reply Last reply 12 Jul 2022, 07:08 Reply Quote 0
                              • undefined
                                moth4017 @MintyTrebor
                                last edited by 12 Jul 2022, 07:08

                                @mintytrebor

                                im not sure if im using "post" correctly. it is working but the http error being reported.

                                "http://192.168.0.10/tare" is what i need to post. i have tried putting "tare" in the data field but this didnt work. i also tried using "Get" this works too but i get the same http error message . It also says "check Browser Console for more details " but there is never any details.

                                Other wise were about 80% of the way through the project .

                                <

                                undefined 1 Reply Last reply 12 Jul 2022, 08:57 Reply Quote 0
                                • undefined
                                  MintyTrebor @moth4017
                                  last edited by 12 Jul 2022, 08:57

                                  @moth4017 If you don't want to send any data then put

                                  {}
                                  

                                  in the post data field.

                                  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

                                  undefined 1 Reply Last reply 12 Jul 2022, 09:19 Reply Quote 0
                                  • undefined
                                    moth4017 @MintyTrebor
                                    last edited by 12 Jul 2022, 09:19

                                    @mintytrebor

                                    Hi tried the { } still get the http error, are you expecting a returned code like 200?

                                    <

                                    undefined 1 Reply Last reply 12 Jul 2022, 09:46 Reply Quote 0
                                    • undefined
                                      MintyTrebor @moth4017
                                      last edited by 12 Jul 2022, 09:46

                                      @moth4017 when you type the Post URL into your browser what is returned?

                                      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

                                      undefined 2 Replies Last reply 12 Jul 2022, 19:10 Reply Quote 0
                                      • undefined
                                        moth4017 @MintyTrebor
                                        last edited by moth4017 7 Dec 2022, 19:16 12 Jul 2022, 19:10

                                        @mintytrebor

                                        putting this into the browser :- http://192.168.0.10/tare{}

                                        Reply
                                        "Path Not Found

                                        URI: /tare%7B%7D
                                        Method: GET
                                        Arguments: 0"

                                        putting this into the browser :- http://192.168.0.10/tare
                                        reply
                                        "tare ok"

                                        the tare ok message is the response from the esp32

                                        <

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          moth4017 @MintyTrebor
                                          last edited by 13 Jul 2022, 03:19

                                          @mintytrebor
                                          still having a few issues with post does this look correct
                                          14669b89-ea1b-4264-b488-a2fabd0ef866-image.png

                                          <

                                          undefined undefined 2 Replies Last reply 13 Jul 2022, 04:49 Reply Quote 0
                                          49 out of 79
                                          • First post
                                            49/79
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA