Skip to main content

Site Navigation

Your Account

Choose Language

Help

Revision to How to include a web camera image in Duet Web Control

Tony

 
 
Duet 2 electronics doesdo not support a directly-connected web camera. However, you can buy a suitable WiFiWifi or Ethernet IP camera and then configure Duet Web Control to include an image from the camera on the Print page.
Duet 2 electronics doesdo not support a directly-connected web camera. However, you can buy a suitable WiFiWifi or Ethernet IP camera and then configure Duet Web Control to include an image from the camera on the Print page.
 
'''Important''': You must choose a camera that has the facility to return a static JPEG image in response to a HTTP request. Not all IP cameras have this facility. Sadly, none of the major browsers supports including a RTSP camera video stream in a web page.
=== Generic setup instructions ===
 
*Connect the camera to your WiFiWifi or Ethernet network according to the manufacturer's instructions.
*Connect the camera to your WiFiWifi or Ethernet network according to the manufacturer's instructions.
 
*Identify your camera's IP address and the HTTP port and URL that return a static JPEG image. You may find https://www.ispyconnect.com/sources.aspx useful.
The following instructions were contributed by forum user Foden.
 
Purchased some 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 Wifi2. 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.
Purchased some 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 Wifi2. 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'

To undo the changes made by this version, click 'Revert Changes.' This will automatically restore the previous version of this guide.

Revert Changes