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

                    @moth4017 it's missing the http:// in the URL

                    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 13 Jul 2022, 22:57 Reply Quote 0
                    • undefined
                      moth4017 @MintyTrebor
                      last edited by moth4017 13 Jul 2022, 22:57

                      @mintytrebor
                      it was a long day and just over looked that one..

                      Ok i tried the auto restore today renamed file
                      e645308f-bb38-4f71-9243-26498ae33977-image.png

                      closed down the browser , which clears all the cached data, restarted DWC , but when i opened up the btncmd interface it had reloaded the default page with the single panel . not the backup, did manaul of install of backup and this was ok

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

                        @moth4017 take a new backup and replace the BtnCmdAutoRestore.json with the new version. Now open your printer in a private browser window, does it auto restore then?

                        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
                          moth4017
                          last edited by 14 Jul 2022, 11:36

                          @mintytrebor

                          Did a new backupAutoRestore file , opened up browser in "incognito" mode put in ip address of the printer , the BtnCmd file did not autorecover .

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

                            @moth4017 when you click the "info" button in settings, what version does it report?
                            80432fb6-2571-41ab-9098-bedde3c08d86-image.png

                            Edit - On further thought, given your installation issues with the plugin version upgrade. I think it would be wise if you stop the plugin, uninstall it, clear your browser cache, download and install the plugin again, then re-test the auto restore feature with a fresh backup file.

                            If that does not work send me your backup file please.

                            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 4 Replies Last reply 14 Jul 2022, 20:50 Reply Quote 0
                            • undefined
                              moth4017 @MintyTrebor
                              last edited by moth4017 14 Jul 2022, 20:50

                              @mintytrebor
                              BtnCmd Beta v0.10.13
                              Cobbled together by Minty Trebor
                              BtnCmd uses the following libraries/modules:
                              DeepMerge, MQTT.js, vue-draggable-resizable, axios, jsonpath, vuedraggable
                              Plus re-uses components and code from DWC.
                              BtnCmd Wiki
                              Material Design Icon Library

                              Ill do the unistall reinstall a bit later on today

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

                                @mintytrebor

                                Ok i did the unistall , create new file , do new back up etc etc
                                opened new browser , and the restore worked, ill keep an eye on it while doing the software on the esp32. cheers

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  moth4017 @moth4017
                                  last edited by moth4017 16 Jul 2022, 23:47

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    moth4017 @MintyTrebor
                                    last edited by 19 Jul 2022, 04:46

                                    @mintytrebor

                                    Hi well , almot there , jus have some OCD things 🙂 now to sort
                                    42542c5b-0ef7-4497-a587-e9ee7d7df51c-image.png
                                    how do i get the buttons and input boxes to line up.

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

                                      @moth4017 turn on Snap to Grid in tab settings

                                      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 19 Jul 2022, 07:03 Reply Quote 0
                                      • undefined
                                        moth4017 @MintyTrebor
                                        last edited by moth4017 19 Jul 2022, 07:03

                                        @mintytrebor
                                        hi snap to grid was already on.

                                        if i turn off snap to grid and resize so they are the same , then turn on snap to grid , that works,

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          moth4017 @MintyTrebor
                                          last edited by 20 Jul 2022, 02:48

                                          @mintytrebor

                                          Hi is there's an easy way to inherit the DWC styles in one of those html boxes,
                                          57c106d0-3b91-404e-9b05-a867a5147dd0-image.png

                                          so font, text colour, back ground colour etc is the same

                                          undefined 1 Reply Last reply 21 Jul 2022, 15:56 Reply Quote 0
                                          61 out of 79
                                          • First post
                                            61/79
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA