WyzeCamV2 used as an IP camera with Duet Wifi
-
@foden said in WyzeCamV2 used as an IP camera with Duet Wifi:
Purchased dome of these beauties, https://www.amazon.ca/Wyze-Wireless-Camera-Android-Version/dp/B076H3SRXG/ref=sr_1_3?ie=UTF8&qid=1541290010&sr=8-3&keywords=wyze, for the house to replace my way more expensive - but dead - IP cameras. With the addition of a small/cheap 4-16GB SD card and an awesome hack from https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks, I can link them to my existing home PVR. I've used Sighthound for years https://www.sighthound.com/, but you don't need to have any software to use these cameras with with Duet Wifi. All you need to do is extract the folder 'firmware_mod' from the Dafang zip file to the root of your sd card. Edit the file \config\usb_eth_driver.conf.dist and add your SSID and password (only 2.4 Ghz). Rename \config\usb_eth_driver.conf.dist\ to \config\usb_eth_driver.conf. That sets up your Wi-Fi connectivity. Once you figure out the cameras IP just enter it into your browser http://www.xxx.yyy.zzz, you will be prompted for the user name 'root' and password 'ismart12' - all lowercase. You can, and should, change the password straight away. Monkey around with the settings but make sure under the camera controls you have RTSP h264 server running. Probably don't need to change much. Then go to your Duet W-Fi under Settings / User Interface enter this for the camera address https://www.xxx.yyy.zzz/cgi-bin/currentpic.cgi - replacing www.xxx.yyy.zzz with the camera IP. Set the web cam update interval to your liking, mine is set at 1 sec. Save your settings and when printing the job status window will update with an image from your camera based on the update interval you entered.
The cameras will also work, generally, in low to no light, I forgot where i got the info but think it just needs a file in the config folder called 'autonight.conf.sw' and all it contains is '-S'Thanks for the details! I have added your instructions to the documentation at https://duet3d.dozuki.com/Wiki/How_to_include_a_web_camera_image_in_Duet_Web_Control.
-
My pleasure, glad I was able to Give rather than Receive for a change
This version of the hack also has an inbuilt 'Update' option that will check and automatically apply available updates. Simply go to the System menu, select Update and then click the Start button - the rest is automatic. Once completed the camera reboots automaticlaly
-
So... got a couple of Wyze cams, modified one, and they are GREAT!! Very good images.
However, I've run into a little bit of trouble getting them to work with DWC. I'm 99% sure the problem I'm having is related to the id/password prompt. If I open the camera in a tab, supply user/pass, and THEN launch DWC in the same tab, it all works.
Sometimes it appears to work, because of caching... but if you really reset everything, the ID/Pwd absolutely is required to make DWC work.
Also... Chrome will not allow an embedded URL like: http://root:pass@bfdcam/cgi-bin/currentpic.cgi These work in the address bar, but will not work in a src="blah blah" in a page.
So... what are people doing? Did I miss a setting?
Thanks!
-
@danal Noticed that myself awhile back but didn't see your post until now. My fix, workaround really is to open a browser and go to the cameras IP. It will prompt for username & password and then show you what it sees. No surprise there, however - go back to the web page your Duet is on and you will be happy to see the camera view will now miraculously work!
-
@Foden My IP cam will open directly from DWC and DWC (run in chrome) does pass the username and password across ok. My string for it is
"http://192.168.0.108:14332/videostream.cgi?loginuse=xxxxxxxxxx&loginpas=xxxxxxxxxxx&resolution=64"
Chrome does seem to pass the arguments slightly differently to other browsers.
note I Have a Sannce cam not the Wyse but the usr/pass should work the same shouldn't it?
HTH
Doug
-
@foden said in WyzeCamV2 used as an IP camera with Duet Wifi:
@danal Noticed that myself awhile back but didn't see your post until now. My fix, workaround really is to open a browser and go to the cameras IP. It will prompt for username & password and then show you what it sees. No surprise there, however - go back to the web page your Duet is on and you will be happy to see the camera view will now miraculously work!
Yep, I got that to work.
-
@dougal1957 said in WyzeCamV2 used as an IP camera with Duet Wifi:
@Foden My IP cam will open directly from DWC and DWC (run in chrome) does pass the username and password across ok. My string for it is
"http://192.168.0.108:14332/videostream.cgi?loginuse=xxxxxxxxxx&loginpas=xxxxxxxxxxx&resolution=64"
Fantastic, I will give that a try.
-
was fiddling around and noticed you can snag the stream from Octopi in to DWI. Simply add /webcam/?action=stream to the end of your Octopi address.
example:192.168.123.99/webcam/?action=stream -
@dc42 said in WyzeCamV2 used as an IP camera with Duet Wifi:
the file \config\usb_eth_driver.conf.dist
Does anyone have any detailed instructions on what to put in the file \config\usb_eth_driver.conf.dist? I know I need to add SSID and password. I just don't know the format.
-
@dc42 There is a mistake in my notes. The line "Edit the file \config\usb_eth_driver.conf.dist and add your SSID and password (only 2.4 Ghz)." is incorrect. It should be "Rename \config\wpa_supplicant.conf.dist to \config\wpa_supplicant.conf and add to it your SSID and password (only 2.4 Ghz)."
-
@dickie3126 sorry - There is a mistake in my notes. The line "Edit the file \config\usb_eth_driver.conf.dist and add your SSID and password (only 2.4 Ghz)." is incorrect. It should be "Rename \config\wpa_supplicant.conf.dist to \config\wpa_supplicant.conf and add to it your SSID and password (only 2.4 Ghz)."
-
I dont understand how to leave proper forum comment if my 2 previous writing your system marked as spam!???
-
@lvnona I had the same problem when I found two typos and corrected them in short intervals. Waiting a bit, it was possible to save then. spam may mean protection against those broadcasted messages.
-
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 thexxx.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.
-
YAY!!! I have two of those gathering dust, for just this reason.
YAY!!!
-
Mine apparently had old firmware, the
config\lighttpd.conf
file didn't have anything resembling the above. I did discover 'autoupdate.sh' while poking around. If anyone finds their file to be not as described, try this:You may or may not wish to use the -f (force) option.
ssh root@192.168.x.x default password is 'ismart12' cd /system/sdcard ******* edit autoupdate.sh with vi and remove *.user and autoupdate.sh from the filter ********* ./autoupdate.sh -d /system/sdcard -f -v
Check your
/system/sdcard/config/wpa_supplicant.conf
and adjust for your network, if required. Mine was OK. -
And, after all of that, NO JOY. However:
ssh root@192.168.x.x default password is 'ismart12' cd /system/sdcard cp lighttpd.conf.dist lighttpd.conf
And then the described edits, and a reboot, and VIOLA! The currentpic URL no longer requires a password.
WOO HOO
-
Just bought 2 WyzecamV2 just for this.
Turns out I can't connect to them (either of them).
The app works well, I see the RTSP feed via VLC, but I cannot connect to it through either ssh or www (http://xxx.xxx.xxx.xxx nor https://xxx.xxx.xxx.xxx)
Any idea? I did extract all files to a microSD, edited the files on it as per instructions (wpa file, not the network).
as mentioned, works well in the app, VLC, even coupled to my Synology NAS, but can'T get it to work...
-
It is hard to tell from your description, are you confident you got the firmware change to "take"? Do you see a web page with admin/ismart12 as the uid/pwd? (or root/ismart12, I don't remember)
-
I do not see that at all. Seems like the firmware didn't update. How do you update this firmware exactly? Is there a special procedure? I updated via the usb card to the latest official first thing, then updated to the second "official" with RTSP.