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

DueUI Release v3.2.5-beta4 is Now Available

Scheduled Pinned Locked Moved
DueUI
3
16
1.6k
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
    gtj0
    last edited by gtj0 5 Apr 2021, 21:55

    v3.2.5-beta4

    https://github.com/gtjoseph/DueUI/releases/tag/v3.2.5-beta4
    https://github.com/gtjoseph/DueUI/wiki

    Changes since v3.2.5-beta3

    Loader fixes:

    • Fixed issue with blank password with standalone Duets.
    • Theme names are now properly taken from config files.

    v3.2.5-beta3

    https://github.com/gtjoseph/DueUI/releases/tag/v3.2.5-beta3
    https://github.com/gtjoseph/DueUI/wiki

    Changes since v3.2.5-beta2

    • Addressed issues with config precedence

      • The whole "sessionStorage" thing was too complicated and I've removed it.
      • Settings are only saved if you click the "Save" button.
      • A new "Save" button was added to the menubar.
      • The save buttons now change color when a setting is changed to remind you to save them.
      • The underlying configuration precedence stuff was changed to handle a wider variety of cases.

    v3.2.5-beta2

    I'm disavowing all knowledge of v3.2.5-beta1 🙂 This release cleans up old installs of DueUI automatically.

    Download: https://github.com/gtjoseph/DueUI/releases/download/v3.2.5-beta2/DueUI-v3.2.5-beta2.zip
    Wiki: https://github.com/gtjoseph/DueUI/wiki
    Pay particular attention to Settings: https://github.com/gtjoseph/DueUI/wiki/Settings

    • Breaking Changes:

      • This was true for the DueUI 3.2.0 release but I'm going to reiterate...You MUST be running a Duet board or Duet Software Framework installation at release 3.1.0 or higher. There were simply too many object model differences between DSF and Standalone installations and I couldn't keep up with them.

      • If you stored your DueUI settings in your dueui_config.json file, the syntax has changed slightly. Instead of declaring the settings as a class class DueUISettings {, they're now declared as an object: configFileSettings = {. See the new default config for exact syntax. Other than this change, a configuration that worked in the previous version should still work as long as it was compatible with RRF 3.1.

      • The theme setting has been replaced by theme_name and theme_path. If you want to use one of the standard themes, you can just specify its name in theme_name and don't specify theme_path. For instance theme_path: "Darkly". If you want to use an external bootstrap theme, you can provide the full URL to the css file in theme_path.

      • I'm no longer going to host a DueUI installation at dueui.org. It's just too much trouble to maintain.

    • Enhancements:

      • There are no longer separate downloads and default configuration files for DSF vs Standalone installations. The same zip download and default configuration will work for both types of installations.

      • You no longer have to choose between DSF and Standalone installation types in Settings. It's autodetected.

      • There is now only one poll interval setting when operating in a Standalone installation. With recent changes made to RRF, the other poll intervals are no longer needed.

      • Settings changes are now automatically saved to the browser's tab-specific "sessionStorage". This allows you to reload the tab while preserving any settings changes you've made. The changes are discarded when you close the tab. If you want to save them across browser restarts or or tab closures, click the "Save" button as you did previously.

      • The underlying JavaScript and CSS files have been reorganized to make loading from standalone devices less resource intensive. I was noticing that sometimes the pages weren't rendering and realized that the Duet had too many connections open to service the requests.

      • An "alt" property was added to the image widget to allow setting alternate text to be displayed if the image or stream can't be loaded.

    • Behind The Scenes

      • There was a lot of refactoring done to the connection and polling code that should make it more reliable (and easier to maintain for me).

    Please open a separate topic for any issues.

    undefined 1 Reply Last reply 14 Apr 2021, 22:51 Reply Quote 0
    • undefined
      gtj0 @gtj0
      last edited by 14 Apr 2021, 22:51

      @stuartofmt Have you had a chance to try this version out?

      1 Reply Last reply Reply Quote 0
      • undefined
        thwe
        last edited by thwe 17 Apr 2021, 08:29

        Hello,

        I updated from 3.0.2 and now the browser can no longer find the config.

        After pointing to my printer, in my case http://192.168.178.29/dueui.html got the error

        a25a31c0-af14-4181-81a1-e64711955301-image.png

        and then

        f38f9f6c-ba4b-45ef-9172-1122da1ab65f-image.png

        then come to the page

        f8b7a116-6ce4-4e44-b4bb-0af427d5853b-image.png

        After Save and Refresh get always the same errors from my browsers (Firefox, GoogleChrome, Edge)

        This is my electronic:
        5ec06b9d-1087-4c02-8e57-55020253a85d-image.png

        and my files on /sys:
        7b34958d-b068-4fef-9455-33b98e0140f5-image.png

        After backup to the old version everything works fine, please help.

        Thomas

        undefined 1 Reply Last reply 17 Apr 2021, 16:28 Reply Quote 0
        • undefined
          stuartofmt @thwe
          last edited by stuartofmt 17 Apr 2021, 16:28

          @thwe

          There are still some residual bugs around the configurations that @gtj0 is working on. It does recognise (completely) the configFileSettings

          If you want to use this beta version: Commented out the configFileSettings and instead, invoked from a url for example (from my setup with your values):

          localhost:8080/dueui.html?dueui_config_url=http://localhost:8080/dueui_config_thwe.json&theme=Darkly&duet_host=192.168.178.29&duet_polling_enabled=1
          

          The form of the url paths may be slightly different depending on where you are running dueui.

          undefined undefined 2 Replies Last reply 17 Apr 2021, 22:44 Reply Quote 0
          • undefined
            gtj0 @stuartofmt
            last edited by 17 Apr 2021, 22:44

            @stuartofmt @thwe Yep. I'm working on them. Should have a release up tomorrow evening (GMT -06:00).

            1 Reply Last reply Reply Quote 1
            • undefined
              thwe @stuartofmt
              last edited by 18 Apr 2021, 09:41

              @stuartofmt

              thanks for your support, but unfortunately it still does not work.

              I have used the following in the browser:

              http://192.168.178.29/dueui.html?dueui_config_url=http://192.168.178.29/dueui_config_default.json&theme=Darkly&duet_host=192.168.178.29&duet_polling_enabled=1

              http://192.168.178.29/dueui.html?dueui_config_url=http://192.168.178.29/dueui_config_default.json&theme=Darkly&duet_host=192.168.178.29&duet_polling_enabled=0

              and no matter if I call with the original config or with my modified one, I always get the message:

              d2008cb2-bcae-4152-8b09-95edc09088c8-image.png

              Will wait for the next release.

              Thomas

              undefined undefined 2 Replies Last reply 18 Apr 2021, 17:26 Reply Quote 0
              • undefined
                stuartofmt @thwe
                last edited by 18 Apr 2021, 17:26

                @thwe said in DueUI Release v3.2.5-beta3 is Now Available:

                and no matter if I call with the original config or with my modified one, I always get the message:

                It looks like you are installing Dueui on your Duet (Standalone). Yes?
                In which case the form of the url is different. See the link here:
                https://github.com/gtjoseph/DueUI/wiki/Settings

                Not the way I'm set up but its something like this:

                http://192.168.178.29/dueui.html?dueui_config_url=dueui_config_default.json&theme=Darkly&duet_polling_enabled=1
                

                It might be best to wait for the next beta release.

                In any case and to help in the future. Here is what I do when using the full url approach installing Dueui on a separate http server:

                1. Make sure the configFileSettings are commented out:
                /*
                 configFileSettings
                <snip>
                */
                
                1. Make sure the browser is clean i.e. delete history cookies etc.

                2. Make sure the duet code is in the root of the http server (i.e. not in a sub-directory)

                http root
                               dueui.html
                               configfile.json
                               etc.
                             /css
                             /js
                             ​/fonts           
                

                This last point I have found can be an issue with Dueui not being able to find the config file (for example when everything dueui is in its own subdirectory off the http root).

                Also - you need polling_enabled=1 otherwise Dueui will not "talk" to duet_host.

                undefined 1 Reply Last reply 20 Apr 2021, 03:39 Reply Quote 0
                • undefined
                  gtj0 @thwe
                  last edited by 19 Apr 2021, 16:28

                  @thwe Actually, on a standalone Duet with with the default config, the url should just be

                  http://192.168.178.29/dueui.html?theme_name=Darkly&duet_polling_enabled=1
                  Note that "theme" has changed to "theme_name".
                  That should work.

                  The reason it didn't is that if you use a full URL for the config file it has to be in the form the server understands. In standalone mode, the Duet web server requires the file be in the form

                  dueui_config_url=http://<your_duet>/rr_download?name=/sys/dueui_config_default.json
                  

                  If the config file is on the Duet itself, you don't need to use the full URL. Just use...

                  dueui_config_url=/sys/dueui_config_default.json
                  

                  DueUI adjusts that internally so that's portable across all Duets and the DSF.

                  I'm still working on the next beta. I think it'll be today.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    thwe @stuartofmt
                    last edited by thwe 20 Apr 2021, 03:39

                    @stuartofmt said in DueUI Release v3.2.5-beta3 is Now Available:

                    It looks like you are installing Dueui on your Duet (Standalone). Yes?

                    correctly

                    @gtj0 said in DueUI Release v3.2.5-beta3 is Now Available:

                    http://192.168.178.29/dueui.html?theme_name=Darkly&duet_polling_enabled=1
                    Note that "theme" has changed to "theme_name".
                    That should work.

                    With this call and with the original config I get the same error again "

                    b17b26f1-8c12-42bf-919e-8a0bedf25e45-image.png

                    After canceling the browser data get:

                    "No config file was found at ' 'http://192.168.178.29/dueui_config_default.json'"

                    Thomas

                    undefined 1 Reply Last reply 20 Apr 2021, 13:30 Reply Quote 0
                    • undefined
                      gtj0 @thwe
                      last edited by 20 Apr 2021, 13:30

                      @thwe OK, I'll get it figured out.

                      If you could...

                      • Open the debugger by right clicking anywhere in the main window and then clicking on "Inspect" or "Inspect element".
                      • Click on the "Console" tab in the debugger window
                      • Recreate the problem
                      • Save the console log to a file
                        • For Chrome based browsers, right click anywhere in the Console tab and select "Save As".
                        • For Firefox, right click on a log message and select "Save visible messages to..."
                      • Attach the resulting log here.
                      undefined 1 Reply Last reply 20 Apr 2021, 14:41 Reply Quote 0
                      • undefined
                        thwe @gtj0
                        last edited by thwe 20 Apr 2021, 14:41

                        @gtj0

                        i hope that the following ist correct - never done something 🙄

                        1. clear browser cache and data
                        2. open: http://192.168.178.29/dueui.html?theme_name=Darkly&duet_polling_enabled=1

                        console.PNG

                        dueui-loader.js:360 Initializing
                        dueui-loader.js:367 {localSettings: {…}}
                        dueui-loader.js:379 {queryParams: {…}}
                        dueui-loader.js:309 Testing http://192.168.178.29 as Standalone
                        dueui-loader.js:124 GET http://192.168.178.29/rr_connect 500 (Unknown request)
                        tryFetch @ dueui-loader.js:124
                        isStandalone @ dueui-loader.js:310
                        getHostBackendType @ dueui-loader.js:337
                        dueui_loader @ dueui-loader.js:388
                        (anonymous) @ dueui-loader.js:500
                        dueui-loader.js:318 http://192.168.178.29 not Standalone: (500) Unknown request
                        dueui-loader.js:323 Testing http://192.168.178.29 as DSF
                        dueui-loader.js:124 GET http://192.168.178.29/machine/file/sys/config.g 404 (page not found<br>Check that the SD card is mounted and has the correct files in its /www folder)
                        tryFetch @ dueui-loader.js:124
                        isDSF @ dueui-loader.js:324
                        getHostBackendType @ dueui-loader.js:340
                        async function (async)
                        getHostBackendType @ dueui-loader.js:337
                        dueui_loader @ dueui-loader.js:388
                        (anonymous) @ dueui-loader.js:500
                        dueui-loader.js:332 http://192.168.178.29 not DSF: (404) page not found<br>Check that the SD card is mounted and has the correct files in its /www folder
                        dueui-loader.js:391 192.168.178.29 is UNKNOWN: (undefined) undefined
                        dueui-loader.js:396 Starting with config_url: dueui_config_default.json
                        dueui-loader.js:410 192.168.178.29 is not a Duet or DSF
                        dueui-loader.js:427 Trying: 'http://192.168.178.29/dueui_config_default.json'
                        DevTools failed to load SourceMap: Could not load content for http://192.168.178.29/js/bootstrap.bundle.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
                        dueui-loader.js:124 GET http://192.168.178.29/dueui_config_default.json 404 (page not found<br>Check that the SD card is mounted and has the correct files in its /www folder)
                        tryFetch @ dueui-loader.js:124
                        dueui_loader @ dueui-loader.js:429
                        async function (async)
                        dueui_loader @ dueui-loader.js:388
                        (anonymous) @ dueui-loader.js:500
                        dueui-loader.js:439 No config file was found at ' 'http://192.168.178.29/dueui_config_default.json'
                        dueui-loader.js:476 No config file found
                        dueui-loader.js:309 Testing http://192.168.178.29 as Standalone
                        dueui-loader.js:314 http://192.168.178.29 is Standalone
                        dueui-loader.js:304 Loading theme Darkly from css/dueui-Cerulean.theme.min.css.gz
                        dueui-bundle.js:93 Unknown backend.  Showing settings
                        dueui-bundle.js:1492 S.Event {type: "dueui-setting-change", timeStamp: 1618929258576, jQuery360016537159328505102: true, isTrigger: 3, namespace: "", â€¦} {name: "duet_password", value: "reprap"}
                        dueui-bundle.js:1492 S.Event {type: "dueui-setting-change", timeStamp: 1618929258583, jQuery360016537159328505102: true, isTrigger: 3, namespace: "", â€¦} {name: "dueui_config_url", value: "dueui_config_default.json"}
                        dueui-bundle.js:1492 S.Event {type: "dueui-setting-change", timeStamp: 1618929258597, jQuery360016537159328505102: true, isTrigger: 3, namespace: "", â€¦} {name: "duet_debug_polling_enabled", value: 0}
                        dueui-bundle.js:1492 S.Event {type: "dueui-setting-change", timeStamp: 1618929258599, jQuery360016537159328505102: true, isTrigger: 3, namespace: "", â€¦} {name: "dueui_settings_dont_send_gcode", value: 0}
                        dueui-bundle.js:1492 S.Event {type: "dueui-setting-change", timeStamp: 1618929258602, jQuery360016537159328505102: true, isTrigger: 3, namespace: "", â€¦} {name: "dueui_test_mode", value: 0}
                        dueui-bundle.js:1492 S.Event {type: "dueui-setting-change", timeStamp: 1618929258604, jQuery360016537159328505102: true, isTrigger: 3, namespace: "", â€¦} {name: "duet_polling_enabled", value: 1}
                        DevTools failed to load SourceMap: Could not load content for http://192.168.178.29/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
                        

                        Thomas

                        undefined 1 Reply Last reply 20 Apr 2021, 20:14 Reply Quote 0
                        • undefined
                          gtj0 @thwe
                          last edited by 20 Apr 2021, 20:14

                          @thwe Yeah that was perfect. It's the same issue that's already been reported. What's happening is that for some reason, the password is blank but the Duet still requires the parameter to be sent even if its blank.

                          I'm working on it still.

                          undefined 1 Reply Last reply 25 Apr 2021, 21:33 Reply Quote 0
                          • undefined
                            gtj0 @gtj0
                            last edited by 25 Apr 2021, 21:33

                            @stuartofmt @thwe I think I've got everything fixed. Sorry for the delay.

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              thwe
                              last edited by thwe 26 Apr 2021, 16:50

                              Installed v3.2.5-beta4 via DWC -> File -> System -> UPLOAD SYSTEM FILE

                              1. google chrome + firefox: clear browser cache and data

                              2. open: http://192.168.178.29/dueui.html?theme_name=Darkly&duet_polling_enabled=1

                              3. get the same error: "Could not connect to 192.168.178.29 or retrieve any config files"

                              Debugger Log's:
                              Firefox: console-export-2021-4-26_18-23-44.txt
                              Google Chrome: 192.168.178.29-1619455172710.txt

                              6ca8e323-55b1-4ecc-accf-06c6f94c27f8-grafik.png

                              get then

                              96067ea3-427b-4a26-a2b6-f3ad91bae510-grafik.png

                              after click "OK"

                              60d4806c-c45e-48e2-bdb4-ab87fecbee95-grafik.png

                              Thomas

                              undefined 1 Reply Last reply 26 Apr 2021, 19:13 Reply Quote 0
                              • undefined
                                gtj0 @thwe
                                last edited by 26 Apr 2021, 19:13

                                @thwe Well, at least it found the config file. 🙂
                                Unfortunately, I just realized which version of RRF you're running.
                                https://github.com/gtjoseph/DueUI/releases/tag/v3.2.5-beta2
                                has a note in "Breaking Changes" ...

                                • This was true for the DueUI 3.2.0 release but I'm going to reiterate...You MUST be running a Duet board or Duet Software Framework installation at release 3.1.0 or higher. There were simply too many object model differences between DSF and Standalone installations and I couldn't keep up with them.

                                I should have caught this earlier, sorry.

                                Ther bottom line is that you should stick with the current 3.0.2 until you can upgrade RRF.

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  gtj0
                                  last edited by 3 May 2021, 11:25

                                  @stuartofmt Had a chance to try beta4 yet?

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