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

    DuetWifi driving me crazy

    Scheduled Pinned Locked Moved
    General Discussion
    9
    35
    5.1k
    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.
    • tomasfundefined
      tomasf
      last edited by

      The web interface should really support all browsers. This is 2016, not 1997.

      1 Reply Last reply Reply Quote 0
      • iDeveloundefined
        iDevelo
        last edited by

        @tomasf:

        The web interface should really support all browsers. This is 2016, not 1997.

        It's not always possible. MS have never followed compliance. If all browsers were WebKit then 100% compliance could be achieved with ease.

        1 Reply Last reply Reply Quote 0
        • eca77undefined
          eca77
          last edited by

          @dc42:

          I am glad you sorted it. For reference, you can find the required SD card folder structure here https://duet3d.com/wiki/SD_card_folder_structure.

          yeah, I saw that, but figured that if the original files had the added tags that it would be allowed so I didn't think anything about it.

          1 Reply Last reply Reply Quote 0
          • tomasfundefined
            tomasf
            last edited by

            Web development requires testing. Not supporting or not testing with some of the major browsers shouldn't be considered acceptable.

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators
              last edited by

              tomasf, DuetWebControl is open source. I invite you to modify it to work around the failures of the so-called major browsers to implement the HTML 5 standard sufficiently. See https://html5test.com/compare/browser/mybrowser/edge-14/safari-9.1/chrome-52.html.

              Edge browser is getting better, and almost all of DWC worked in it last time I tried it.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • elmoretundefined
                elmoret
                last edited by

                @tomasf:

                Web development requires testing. Not supporting or not testing with some of the major browsers shouldn't be considered acceptable.

                MS Edge seems to have a ~5% market share spread across 3 versions:

                https://www.netmarketshare.com/browser-market-share.aspx?qprid=2&qpcustomd=0

                Not sure that can be considered "major"?

                1 Reply Last reply Reply Quote 0
                • lignumaquaundefined
                  lignumaqua
                  last edited by

                  FYI The problem with editing config files is that Safari doesn't support the 'new File()' constructor used in upload.js (nor does IE or Edge). However it is supported in Chrome, Opera, and FireFox. See http://caniuse.com/#feat=fileapi

                  I've tried some of the usual work-arounds for this Safari issue, but not found one that works.

                  1 Reply Last reply Reply Quote 0
                  • T3P3Tonyundefined
                    T3P3Tony administrators
                    last edited by

                    I have updated the Wiki to include a note on the folder naming, eca77 sorry you spent so much time on this!
                    https://duet3d.com/wiki/SD_card_folder_structure

                    Also added a note about browsers to here:
                    https://duet3d.com/wiki/Prerequisites_for_using_the_Duet_WiFi

                    And this as a trouble shooting page:
                    https://duet3d.com/wiki/File_uploads_or_other_DWC_features_not_working

                    When any more information or workarounds for other browsers becomes available we can update the troubleshooting page.

                    www.duet3d.com

                    1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators
                      last edited by

                      FWIW I tried to find out why saving files in the System File Editor doesn't work in the latest version of Edge. With developer tools enabled, Edge pauses when I attempt to save the file as if an exception has occurred. But Edge is then completely unresponsive, denying me the possibility of finding out what the exception was. Microsoft needs to get its act together.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      1 Reply Last reply Reply Quote 0
                      • roboduetundefined
                        roboduet
                        last edited by

                        @dc42:

                        FWIW I tried to find out why saving files in the System File Editor doesn't work in the latest version of Edge. With developer tools enabled, Edge pauses when I attempt to save the file as if an exception has occurred. But Edge is then completely unresponsive, denying me the possibility of finding out what the exception was. Microsoft needs to get its act together.

                        Microsoft Edge 25.10586.0.0
                        MicrosoftEdgeHTML 13.10586

                        Browser shows the following error in dev console:

                        [[language]]
                        SCRIPT5002: Function expected
                        dwc.js (47,165042)
                        
                        

                        This error points me to this line:

                        [c]var c=new File([d],a,{type:"application/octet-stream"}[/c]

                        1 Reply Last reply Reply Quote 0
                        • dc42undefined
                          dc42 administrators
                          last edited by

                          Interesting, I am using the exact same version of Edge and it freezes on me every time, running under Windows 10 64-bit.

                          I guess the problem is lack of support for the File constructor as mentioned earlier.

                          Duet WiFi hardware designer and firmware engineer
                          Please do not ask me for Duet support via PM or email, use the forum
                          http://www.escher3d.com, https://miscsolutions.wordpress.com

                          1 Reply Last reply Reply Quote 0
                          • lignumaquaundefined
                            lignumaqua
                            last edited by

                            @roboduet:

                            This error points me to this line:

                            [c]var c=new File([d],a,{type:"application/octet-stream"}[/c]

                            Yes, this is as I posted above, the core problem is that Edge (and the other browsers) don't support the 'new File()' constructor.

                            You can sometimes work around this by using the 'new Blob()' constructor instead (A file is just a specific type of blob), but I couldn’t make that work here in a quick test. I'll try again.

                            1 Reply Last reply Reply Quote 0
                            • lignumaquaundefined
                              lignumaqua
                              last edited by

                              Update, and good news! I just tested after a Safari update and the latest version of Safari supports the new File() constructor and thus the DWC file editor works in Safari 10.0.1 and later! (Won't work in any earlier versions)

                              Huzzah!

                              Not so for Edge or IE I'm afraid…

                              EDIT:

                              The following code may work in IE and Edge - I haven’t tested it in this case, but it's worked for me elsewhere:

                              Replace line 22 in upload.js
                              [c]var file = new File([content], filename, { type: "application/octet-stream" });[/c]

                              With
                              [c]var file = new Blob([content], { type: "application/octet-stream" });
                              file.lastModifiedDate = new Date();
                              file.name = filename;[/c]

                              Ideally this would only be done if the browser is detected as IE or Edge, or if new File() isn’t valid.

                              1 Reply Last reply Reply Quote 0
                              • eca77undefined
                                eca77
                                last edited by

                                @T3P3Tony:

                                I have updated the Wiki to include a note on the folder naming, eca77 sorry you spent so much time on this!
                                https://duet3d.com/wiki/SD_card_folder_structure

                                Also added a note about browsers to here:
                                https://duet3d.com/wiki/Prerequisites_for_using_the_Duet_WiFi

                                And this as a trouble shooting page:
                                https://duet3d.com/wiki/File_uploads_or_other_DWC_features_not_working

                                When any more information or workarounds for other browsers becomes available we can update the troubleshooting page.

                                No problem, it was mostly me being so new to all this and assuming things, something that gets me in trouble quite a bit when I think about it… 😉
                                But actually glad that something came about from this and hopefully will help others.

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