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

    Duet Web Control 2.0.0-RC3 is ready

    Scheduled Pinned Locked Moved
    Duet Web Control
    50
    147
    27.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.
    • antlestxpundefined
      antlestxp @dc42
      last edited by

      @dc42 i am. the web control loads pretty slow compared to the original and i keep getting "CORS request failed" I have my duet plugged into a google mesh unit. it shows a connection speed of 600mb/s between nodes. i didn't have any connectivity issues before the updates.

      1 Reply Last reply Reply Quote 0
      • Jacotheronundefined
        Jacotheron
        last edited by

        From my limited debugging related to the CORS errors, it seems that it may be used any time the request failed without something like error 404.

        Where I got it, was trying to set it up for the reverse proxy, so I can visit it over HTTPS.

        For the HTTPS, some resources are simply not loaded due to Mixed Content (the login call was sent without https and was denied by the browser) - this resulted in a CORS error being displayed.

        Looking at the js, I found that in a few places, HTTP is hard-coded. For this I would recommend to determine the HTTPS status (whether it should be over https or http), and then use the correct one. This can be a global constant set at time of running (do a simple test and then set it), as it should not change during the browser session. This can also possibly shave off a few bytes in the file.

        While debugging (in the reverse proxy scenario) I found Firefox report a lot of "[merge] Skipped merge of /autoConnect because it does not exist in the source" warnings (the autoConnect is only the first one, it seems like setting names).

        1 Reply Last reply Reply Quote 0
        • 3dmntbighkerundefined
          3dmntbighker
          last edited by

          If I have a limit switch for Z home, can I eliminate it from DWC? And why does the value change during a print when the switch remains untouched after the initial home?

          Scratch built CoreXY with Maestro
          Heavily modified Ender 3 with Maestro
          MPCNC work in progress with Duet WiFi

          1 Reply Last reply Reply Quote 0
          • Torroundefined
            Torro
            last edited by

            Hi,

            Just updated to the new DWC.
            Webcam URL was missing, so i added that.

            Now, there is a problem with the update interval. DWC doesn´t store a changed value. i change it to 1000ms and swap to the webcam. the image is updated every 5 seconds. so i jump back to "user interface" and the update interval is set to 5000ms.

            any idea?

            Thanks!!

            Torroundefined 1 Reply Last reply Reply Quote 0
            • chrishammundefined
              chrishamm administrators
              last edited by

              Happy new year, RC3 is now available. See https://github.com/chrishamm/DuetWebControl/releases/tag/2.0.0-RC3 for the update package and for the full change list.

              This version provides fixes for many bugs and greatly increases the performance - there was a bug in the model code that caused a lot of unnecessary VDOM updates which slowed the whole thing down. The new version should be way faster than RC1+RC2.

              @wilriker The -mini version of DWC does not contain any source maps, so if you use it and get errors, no useful output would be printed in the JS console. Because DWC2 is still a pre-release I decided to always include them in the standard update bundle. RC2 did not take into account the port when connecting but it should be fixed in RC3.

              @gnydick The main reason DWC2 was rewritten from scratch was to provide a solid base for future development and a better environment for OEM customisations. Here my notes on your points of criticism:

              • It's true that there was no tab navigation in RC1+2 but I added it back to most of the controls in RC3. Activating buttons and items can be done by pressing the Enter key and switches can be toggled via arrow keys. Dialogs are still missing keyboard navigation but I will add it in the future.
              • Good point about the babystepping+movement buttons. In RC3 they now longer wait for the code to be processed, so they should behave in the same way as in DWC1.
              • One of the requirements for DWC1 was to improve touch support, which needs wider spaces so that you don't activate two elements at once. The whole layout could be probably condensed a bit more, yet this is something we can still address.
              • I disagree with the idea that DWC2 would be a perfect example of form over function - it's just a fact that DWC has evolved into a big PWA and I do not want to drop functionality we had in DWC1 even if that makes the whole layout bigger/clumsier. If you say you don't need any fancy charts or as many sub-pages, you can still edit the layout/routing by changing the source files (src/App.vue and sub-files in the 'src/routes' directory in particular) - it's all open-source. In the long-term I will develop a UI designer but that is not a simple task and will involve more work. Originally I wanted to make use of a grid system to allow customisations right in DWC2 but I remove it again (for now) because it degraded the performance too much.
              • G-code pop-ups take you to the console only if you don't hit the 'X' button
              • You can return to DWC1 by deleting 'index.html.gz. from the /www directory.

              @Dougal1957 Drag&Drop support for the upload buttons was broken in RC2 but it's fixed in RC3.

              @Jacotheron I changed the layer chart to hide the 1st layer once the 2nd one is complete. Many people complained about the slider ranges in DWC1 so I decided to make them dynamic in DWC2. I agree the UI was rather slow in RC2 but should be way faster in RC3. If you have a good proposal about a potential new structure for DWC2, please feel free to share your thoughts. As I said in the original DWC2 RFC thread I know the layout is not perfect but I wanted to establish the same functionality from DWC1 before moving on to further changes.

              @Scachi Thanks, it should be fixed in RC3.

              @brandonh Sounds like a good idea to show 'loading' instead of 'No jobs' etc. I will consider it for RC4. Browser navigation is not supported in the file lists yet but I could add it in the future. What exactly do you mean by speed graphing?

              @fotomas @whosrdaddy Thanks, these problems have been fixed in RC3.

              @AS-3D-Druck There are some changes in the dark theme of RC3, perhaps you will like the new version better.

              @Danal @kazolar Please try out DWC2-RC3. I reduced the number of CSS+JS files to 1 for both, so I think it will load more reliably.

              @Edgars-Batna DWC2 uses a UI framework that follows material design and on Android the order of buttons is different from Windows. Did you have a tool selected when you tried to extrude? The prompt for restarting the board was added again in RC3. Thanks for the note about config.bak instead of config.g.bak, it's been fixed too.

              @kraegar Drag&drop is supported in the Files category. If you want to move a file up, drag&drop it on one of the directory links at the top.

              @percar Thanks, good to hear!

              @patakopecek The general upload is on the System Files page. I will move that to a separate '(Auto-)Update' page when I find more time.

              @kuhnikuehnast Support for i18n has been prepared but it is not finished yet. I will improve this aspect once the new layout is final.

              In general CORS errors are equivalent to network errors. When running DWC2 on localhost and it tries to connect to another machine, the browsers do a CORS preflight check (by sending an OPTIONS request to the host to see if the other request would be actually permitted) and if that fails, DWC2 reports a CORS error. I may simplify this a bit more so that it shows 'Network error' instead of 'CORS error' when running on a Duet.

              Duet software engineer

              AS-3D Druckundefined gnydickundefined wilrikerundefined Edgars Batnaundefined brandonhundefined 6 Replies Last reply Reply Quote 2
              • AS-3D Druckundefined
                AS-3D Druck @chrishamm
                last edited by

                @chrishamm Happy New Year WOW, that was fast. THX

                Best regards
                AS-3D Druck / Andre

                1 Reply Last reply Reply Quote 0
                • Torroundefined
                  Torro @Torro
                  last edited by

                  @torro said in Duet Web Control 2.0.0-RC3 is ready:

                  Hi,

                  Just updated to the new DWC.
                  Webcam URL was missing, so i added that.

                  Now, there is a problem with the update interval. DWC doesn´t store a changed value. i change it to 1000ms and swap to the webcam. the image is updated every 5 seconds. so i jump back to "user interface" and the update interval is set to 5000ms.

                  any idea?

                  Thanks!!

                  Problem solved after instaling RC3!

                  1 Reply Last reply Reply Quote 1
                  • SupraGuyundefined
                    SupraGuy
                    last edited by

                    @chrishamm : Sorry, I took a break from the Internet over the last week of the year, so I didn't get your response until now. Happy new Year.

                    I can respond that I was/am using the 1.21 wifi server, and did upgrade to the 2.02 firmware. I did not check for errors, but I did check Chrome for Windows, Chrome for Android, Internet Exploder, FireFox and MS Edge browsers, with the same result for all. I then restored the SD card image for my Duet that I made right before the upgrade (A basic precaution whenever making upgrades like this) to go back to the old DWC. I'll re-load the new RC3 and try again.

                    Lead screw driven printer, powered by Duet 2 Wifi
                    MPCNC powered by Duet 2 Wifi
                    CoreXY printer driven by Duet 3 6HC
                    LowRider CNC powered by Duet 2 Wifi

                    1 Reply Last reply Reply Quote 0
                    • wilrikerundefined
                      wilriker
                      last edited by wilriker

                      Just installed RC3 and yes it is a lot more responsive (performance not layout) now. Menu opens faster, switching to another entry in the menu is a lot faster. I like that a lot!

                      One thing I realized in RC2 still present in RC3: on the GCode Jobs page I have to scroll to the bottom of the page to get to the horizontal scrollbar. On my 1280x1024 screen I need the scrollbar to get to the columns with simulation time and generated by. Would be nicer to have this scrollbar always at the bottom of the visible screen. Not a big one but just wanted to mention it.

                      Also minor cosmetic thing: on the newly extended versions widget the version for Duet Wifi Server is cut off

                      (info)About
                      Duet Web Control 2.0.0-RC3 
                      
                      Electronics: Duet WiFi 1.02 or later 
                      Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 2.02(RTOS) (2018-12-24b1) 
                      Duet WiFi Server Version: 1.22beta1(30b14 
                      
                      Web Interface developed by Christian Hammacher for Duet3D
                      Licensed under the terms of the GNU General Public License v3
                      Stay tuned for updates!
                      

                      EDIT: I can now also confirm that it is working with my remote-reverse-proxy-non-standard-port-setup. 😁

                      Manuel
                      Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                      with probably always latest firmware/DWC (incl. betas or self-compiled)
                      My Tool Collection

                      1 Reply Last reply Reply Quote 0
                      • Wyvernundefined
                        Wyvern
                        last edited by

                        Oooooh, fancy.

                        How would one configure a web cam?

                        1 Reply Last reply Reply Quote 0
                        • burtoogleundefined
                          burtoogle
                          last edited by

                          mm/min ?

                          0_1546454246451_Screenshot_2019-01-02_18-36-42.png

                          1 Reply Last reply Reply Quote 0
                          • burtoogleundefined
                            burtoogle
                            last edited by

                            Spello

                            0_1546454465724_Screenshot_2019-01-02_18-40-42.png

                            3dmntbighkerundefined 1 Reply Last reply Reply Quote 0
                            • Jacotheronundefined
                              Jacotheron
                              last edited by

                              @Wyvern I have a RaspberryPi Zero W configured with the RPi Cam software. A simple search for it, should reveal the website and Github - installation is simply cloning the Github repository, and running the install (the website have the command to run). I prefer the nginx option compared to apache, but it is up to you which one. I have a guide on here how to set up a reverse proxy on the same RaspberyPi.

                              I will test the new version as soon as I have an opening.

                              Wyvernundefined 1 Reply Last reply Reply Quote 0
                              • garyd9undefined
                                garyd9
                                last edited by

                                @chrishamm, is there a demo site of this posted somewhere? I'm really curious, but I don't want to update my duet wifi (or anything related) until I resolve another issue.

                                Thanks
                                Gary

                                "I'm not saying that you are wrong - I'm just trying to fit it into my real world simulated experience."

                                1 Reply Last reply Reply Quote 0
                                • chrishammundefined
                                  chrishamm administrators
                                  last edited by

                                  @burtoogle Thanks, will correct both.

                                  @garyd9 At the moment you can only connect to remote machines in DWC2 if you run it on your own computer. This means you need to install NodeJS and clone the web interface repository first (the 'next' branch). After that you can run 'npm install' followed by 'npm run serve' in the cloned directory to start a local web server that lets you connect to your Duet board without having to install it first - in fact that is how I test stuff during development.

                                  Support for multiple machines can be easily added in the future but I've got several other things on my TODO list which I need to take care of first.

                                  Duet software engineer

                                  1 Reply Last reply Reply Quote 0
                                  • AS-3D Druckundefined
                                    AS-3D Druck
                                    last edited by

                                    @chrishamm it is a small thing but could you also add a setting where you can change the time Format?
                                    From AM/PM to 1-24 h Format? (on the Temperature Chart)

                                    Best regards
                                    AS-3D Druck / Andre

                                    chrishammundefined 1 Reply Last reply Reply Quote 0
                                    • chrishammundefined
                                      chrishamm administrators @AS-3D Druck
                                      last edited by

                                      @as-3d-druck Hmm, according to the chart.js/moment.js documentation, RC3 should be using the local time format (i.e. 24-hour format with a German locale) but it still seems to be wrong. I'll have a look at it again.

                                      Duet software engineer

                                      1 Reply Last reply Reply Quote 1
                                      • whosrdaddyundefined
                                        whosrdaddy
                                        last edited by

                                        @chrishamm : Happy NY!
                                        RC3 is working now on my Duets, thanks for the hard work 😉

                                        1 Reply Last reply Reply Quote 0
                                        • Wyvernundefined
                                          Wyvern @Jacotheron
                                          last edited by

                                          @jacotheron cool, I never used a a pi. First time for everything.

                                          1 Reply Last reply Reply Quote 0
                                          • antlestxpundefined
                                            antlestxp
                                            last edited by

                                            is there a way to swap out the layer chart for the web cam feed?

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