Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. anamit117
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Best 2
    • Controversial 0
    • Groups 0

    anamit117

    @anamit117

    2
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    anamit117 Unfollow Follow

    Best posts made by anamit117

    • RE: WyzeCamV2 used as an IP camera with Duet Wifi

      @ericlmccormick @Nathan116 I have solved the issue by completely disregarding the file path for the /cgi-bin/currentpic.cgi and simply using the ip address - it actually just shows you the entire camera UI so you have access to all the onboard camera settings and controls through DWC. See the attached screenshots below with the ui example and ip address settings.

      3D_Printer_Camera.png

      Screenshot 2022-07-01 213428.png

      I believe the issue of the still image in DWC with the /cgi-bin/currentpic.cgi is simply related something to the https settings in the firmware of the camera and the way chrome/edge works (edge uses the chrome backend) as was discussed in this thread: [https://forum.duet3d.com/topic/20366/adding-camera-duet2-wifi-rstp-problems-chrome/15]

      I have not tested the solution in the thread above and simply use the camera ip address as discussed previously. Both http and https work for me stock.

      posted in General Discussion
      anamit117undefined
      anamit117
    • RE: WyzeCamV2 used as an IP camera with Duet Wifi

      @paralepsis Well this camera does not have any autofocus so I understand where the concern would come from but the fixed focus has been fine for me as the printer I have is quite large, it perhaps could be an issue for mounting this camera on smaller printers. I would say the resolution only being 1080p is more of a limiting factor over the focus. You obviously cannot see the absolute most amount of detail when it comes to the prints (ie. small text on 3d prints) but it works fine to monitor the overall print and stop it if something major goes wrong.

      I should add some clarity on my last post as well that if you are presented with a blank page even after adding just the camera IP in DWC, you should first go directly to the camera IP outside of DWC to make sure you can load the camera page by itself (you may be prompted by your browser that the page is unsecured/untrusted - just allow it). Once you type in the root username and password (default is root:ismart12), you should be able to access it in DWC as well, it may prompt you to reenter the password in the DWC page as well. Once you have confirmed your camera is working through DWC, you can remove the username and password requirement by following this link (instructions are the same for both the cgi-bin/currentpic image and the full camera gui): [https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues/1666]

      A very similar username and password fix was discussed above but only applicable to the cgi-bin/currentpic by @mabover in WyzeCamV2 used as an IP camera with Duet Wifi:

      I wanted to share that I found a way to allow no login access to the still image webpage when using the Dafang Hacks firmware on a Wyze Camera V2

      You will need to either ssh into your camera or take out the sd card and modify the lighttpd.config file
      If accessing via ssh you will need to use vi, or if modifying via the sd card on your computer use a file editor like notepad++.

      path via ssh: /system/sdcard/config/lighttpd.conf
      path via sd card: \config\lighttpd.conf

      once you have opened the file find the following line, should be line 40

      $HTTP["url"] !~ "^/.well-known/(.*)" {
      

      and change it to the following

      $HTTP["url"] !~ "^/cgi-bin/currentpic.cgi|/.well-known/(.*)" {
      

      save the file and reboot if accessing via ssh or reinstall the sd card in the camera and plug it back in. You should now be able to access the following link via your browser with out logging into the camera web interface

      http://xxx.xxx.xxx.xxx/cgi-bin/currentpic.cgi
      (replace the xxx.xxx.xxx.xxx) with your camera ip address or camera host name.

      Once you have confirmed that this works you can place the link into the duet web control settings under the web camera config section in the setting page.

      What this change does is specifically exempt the path to the currentpic.cgi webpage page from being protected via the login prompt. The rest of the web interface is still protected by the login prompt.

      Please note that I have not validated if this change compromises the security of the default config Dafang Hacks firmware, so proceed at your own risk.

      Prutsium created this issue in EliasKotlyar/Xiaomi-Dafang-Hacks

      closed Remove password requirement of Still image /cgi-bin/currentpic.cgi #1666

      posted in General Discussion
      anamit117undefined
      anamit117

    Latest posts made by anamit117

    • RE: WyzeCamV2 used as an IP camera with Duet Wifi

      @paralepsis Well this camera does not have any autofocus so I understand where the concern would come from but the fixed focus has been fine for me as the printer I have is quite large, it perhaps could be an issue for mounting this camera on smaller printers. I would say the resolution only being 1080p is more of a limiting factor over the focus. You obviously cannot see the absolute most amount of detail when it comes to the prints (ie. small text on 3d prints) but it works fine to monitor the overall print and stop it if something major goes wrong.

      I should add some clarity on my last post as well that if you are presented with a blank page even after adding just the camera IP in DWC, you should first go directly to the camera IP outside of DWC to make sure you can load the camera page by itself (you may be prompted by your browser that the page is unsecured/untrusted - just allow it). Once you type in the root username and password (default is root:ismart12), you should be able to access it in DWC as well, it may prompt you to reenter the password in the DWC page as well. Once you have confirmed your camera is working through DWC, you can remove the username and password requirement by following this link (instructions are the same for both the cgi-bin/currentpic image and the full camera gui): [https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues/1666]

      A very similar username and password fix was discussed above but only applicable to the cgi-bin/currentpic by @mabover in WyzeCamV2 used as an IP camera with Duet Wifi:

      I wanted to share that I found a way to allow no login access to the still image webpage when using the Dafang Hacks firmware on a Wyze Camera V2

      You will need to either ssh into your camera or take out the sd card and modify the lighttpd.config file
      If accessing via ssh you will need to use vi, or if modifying via the sd card on your computer use a file editor like notepad++.

      path via ssh: /system/sdcard/config/lighttpd.conf
      path via sd card: \config\lighttpd.conf

      once you have opened the file find the following line, should be line 40

      $HTTP["url"] !~ "^/.well-known/(.*)" {
      

      and change it to the following

      $HTTP["url"] !~ "^/cgi-bin/currentpic.cgi|/.well-known/(.*)" {
      

      save the file and reboot if accessing via ssh or reinstall the sd card in the camera and plug it back in. You should now be able to access the following link via your browser with out logging into the camera web interface

      http://xxx.xxx.xxx.xxx/cgi-bin/currentpic.cgi
      (replace the xxx.xxx.xxx.xxx) with your camera ip address or camera host name.

      Once you have confirmed that this works you can place the link into the duet web control settings under the web camera config section in the setting page.

      What this change does is specifically exempt the path to the currentpic.cgi webpage page from being protected via the login prompt. The rest of the web interface is still protected by the login prompt.

      Please note that I have not validated if this change compromises the security of the default config Dafang Hacks firmware, so proceed at your own risk.

      Prutsium created this issue in EliasKotlyar/Xiaomi-Dafang-Hacks

      closed Remove password requirement of Still image /cgi-bin/currentpic.cgi #1666

      posted in General Discussion
      anamit117undefined
      anamit117
    • RE: WyzeCamV2 used as an IP camera with Duet Wifi

      @ericlmccormick @Nathan116 I have solved the issue by completely disregarding the file path for the /cgi-bin/currentpic.cgi and simply using the ip address - it actually just shows you the entire camera UI so you have access to all the onboard camera settings and controls through DWC. See the attached screenshots below with the ui example and ip address settings.

      3D_Printer_Camera.png

      Screenshot 2022-07-01 213428.png

      I believe the issue of the still image in DWC with the /cgi-bin/currentpic.cgi is simply related something to the https settings in the firmware of the camera and the way chrome/edge works (edge uses the chrome backend) as was discussed in this thread: [https://forum.duet3d.com/topic/20366/adding-camera-duet2-wifi-rstp-problems-chrome/15]

      I have not tested the solution in the thread above and simply use the camera ip address as discussed previously. Both http and https work for me stock.

      posted in General Discussion
      anamit117undefined
      anamit117