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

    Adding Camera Duet2 Wifi RSTP problems & Chrome

    Scheduled Pinned Locked Moved
    Duet Web Control
    8
    30
    1.7k
    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.
    • uneumann36undefined
      uneumann36
      last edited by

      Ok, sorry for the question,
      But how to do?

      1 Reply Last reply Reply Quote 0
      • uneumann36undefined
        uneumann36
        last edited by

        I hope someone has an idea

        Phaedruxundefined 1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator @uneumann36
          last edited by

          @uneumann36 well @DIY-O-Sphere says he has it working still, so I think there's something you're missing from the modification to the wyze cam. I don't have one myself, so I'm not much help, but it does appear to work for some.

          Z-Bot CoreXY Build | Thingiverse Profile

          DIY-O-Sphereundefined 1 Reply Last reply Reply Quote 0
          • Mac3D-FPVundefined
            Mac3D-FPV
            last edited by

            I was able to get the Wyzecam V2 with the Dafang firmware working to provide a video feed in DWC using the Safari browser. The video is choppy, but sufficient to monitor the progress of a print. In the Dafang firmware, I changed the Codec for RTSP Server to "MPJEG" (MPJEG is probably a typo in the Dafang firmware) and the video size to 1280x720 (larger and smaller sizes also worked). I then assigned a fixed IP address to the Wyzecam on my router. In DWC, under Setting, General, Webcam, I inserted the Webcam URL as "http://xxx.xxx.x.xx/cgi-bin/currentpic.cgi" (where xxx.xxx.x.xx is the fixed IP address I assigned), set the Webcam update interval to 500ms, repeated the above URL exactly under URL to open when Webcam image is clicked, and turned off both "Do not append extra HTTP qualifier when reloading images" and "Embed webcam image in iframe." Hope this helps.

            1 Reply Last reply Reply Quote 1
            • DIY-O-Sphereundefined
              DIY-O-Sphere @Phaedrux
              last edited by DIY-O-Sphere

              @uneumann36

              Now I also got it working in Chrome, but only on my PC. On my mobile the cam snap is displayed now , but will not be updated.
              It's a little tricky. Seach for "dafang hack disable https"

              (UTC+1)

              uneumann36undefined 1 Reply Last reply Reply Quote 0
              • uneumann36undefined
                uneumann36 @DIY-O-Sphere
                last edited by

                @DIY-O-Sphere
                Sounds good.
                Where to search?

                DIY-O-Sphereundefined 1 Reply Last reply Reply Quote 0
                • DIY-O-Sphereundefined
                  DIY-O-Sphere @uneumann36
                  last edited by

                  @uneumann36

                  Editing the lighttpd.conf file found in /system/sdcard/config/lightpd.conf and commenting out the following lines:

                  Code

                  #$HTTP["scheme"] == "http" {
                  #    # capture vhost name with regex conditiona -> %0 in redirect pattern
                  #    # must be the most inner block to the redirect rule
                  #    $HTTP["host"] =~ ".*" {
                  #        url.redirect = (".*" => "https://%0$0")
                  #    }
                  #}
                  

                  Then reboot the camera.
                  Now in DWC change the link to http://xxx.xxx.x.xx/cgi-bin/currentpic.cgi

                  (UTC+1)

                  1 Reply Last reply Reply Quote 1
                  • widjitundefined
                    widjit
                    last edited by

                    I had a little trouble getting this up and running but now that I have read and re-read I caught a few things maybe possibly update the wiki camera section with making sure "Embed Webcam Stream" and " Do not append extra HTTP qualifier " are un-checked. Those were the two things holding me back. I did update the lighttpd.conf file so you do not have to use the "user:pass" portion of the address. Another note is using the cgi-bin/currentpic.cgi isn't using RTSP, it is using a static image that is updated at whatever frame rate you have set in the Dafang firmware and the duet grabs whichever frame happens to be the most current still image which is currentpic.cgi when it does its update at your specified interval.

                    Nathan116undefined 1 Reply Last reply Reply Quote 1
                    • Nathan116undefined
                      Nathan116 @widjit
                      last edited by

                      @widjit where do you set the auto-update/refresh value? I can view a still image using the cgi-bin/currentpic.cgi address, but it does autorefresh or anything, I have to keep manually clicking the refresh button, which is incredibly annoying and useless. It sounds like, for you, it autoupdates with a choppy video, which is better than just 1 still image

                      1 Reply Last reply Reply Quote 0
                      • Nathan116undefined
                        Nathan116
                        last edited by

                        Alright, so I realized that the "update" y'all are talking about is in the DWC settings tab, not the Camera's settings tab 🤦. I have set my update interval anywhere between the default 5000ms (so 5 seconds) and 10ms, but it's definitely not updating that quickly at either setting. 10ms is like 1 sec and 5000ms is like a solid 10-15 seconds...

                        Is there any hope of getting an ffmpeg "output" straight from the Wyze Cam? I mean, the RTSP is nice, but there's no browser that can view that stream, so it's also kinda useless for our application (I realize that these cameras are initially intended to be security cameras and the RTSP works for that application). Would it be too difficult (I'm sure it would and personally wouldn't even know where to start) to merge the ffmpeg pi program into the dafang hack?

                        1 Reply Last reply Reply Quote 0
                        • uneumann36undefined
                          uneumann36
                          last edited by

                          Gentleman
                          I would keep up this issue again.

                          First, yes i got my wyzecam running on DWC.
                          But it works only (on Chrome) when i open the camera tap via seperate tap and write passwort and so on, to see the live stream.
                          Then it is also working on DWC.

                          So i am a bit fustratet,

                          Question : Do anyone know a camera who works from the beginning without problems in DWC ?
                          No matter what kind or costs?

                          Or is this the problem of the Browser or both?

                          Regards
                          Uwe

                          Phaedruxundefined 1 Reply Last reply Reply Quote 0
                          • Phaedruxundefined
                            Phaedrux Moderator @uneumann36
                            last edited by

                            @uneumann36 said in Adding Camera Duet2 Wifi RSTP problems & Chrome:

                            Question : Do anyone know a camera who works from the beginning without problems in DWC ?
                            No matter what kind or costs?

                            My preferred cam setup is a raspberry pi zero W running MotionOS with the pi cam module. It works great.

                            Z-Bot CoreXY Build | Thingiverse Profile

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