IP Camera Idea



  • I had an idea and I figured I would throw it out here in case something already exists that I just didn't run across. I don't want to fight with Octopi since I can roll my own more specific solution.

    Just built a D300VS+. I saw that I can embed an IP camera image in the Duet Web Control interface but it needs to be an image not a stream.

    The solution I'm working on is mjpegstreamer running on a RPI. I'm going to create a script that will check the Web Control for heater 1 to go above 50C, then it will start the webcam streaming on 8080 and saving a snapshot every 5 seconds for the Web Control Interface until it goes back down below 50C.

    I have a good bit of it already worked out and tested. After that I think I'm going to try to grab the Z height so I can make a servo move the camera up to track with the effector as the print progresses.

    Thanks in advance, Rob.



  • It can't be a stream? I use a video stream from MotionEye running on a RPiZeroW without issue.



  • I'll take a look at that. I thought when I tried to point it at my PI with the stream running, the interface had a message saying it need to be of a file type. Like it wanted something ending in .jpg. Thanks!



  • What version of firmware and DWC are you running?



  • I believe 1.18. I think the 1.19 for ultibots at the time was only for wifi. I have the ethernet version. I think I saw they have the newer version up now though. once I commission the heat bed which is all I have left, I'll try to upgrade.

    I'm installing the motioneye remotely now too just to see how it works. The printer is off though when I'm not home.



  • Once you update you should see a check box to Embed Webcam Stream in the settings of DWC. You should set MotionEye to function as a Fast Network Camera and then use the stream URL in DWC.

    See this post for specific settings: https://forum.duet3d.com/topic/49/suitable-webcams-for-displaying-progress-in-the-webui/31



  • Awesome. Thanks! I'll save my scripting for the z tracking 🙂



  • There is still fertile ground for your scripting attempts. While it is easy to get a stream into the DWC there is currently no way to easily produce time lapses without using Octoprint. Having an instance running on the Pi to grab stills from the static image url on an interval and then compile them into an mpeg would be well received and fill a void.



  • Thanks for the help. Turns out the upgrade to 1.19.2 worked for streaming types of webcams. It probably would have worked with mjpeg streamer too since I think it's based on motion too.



  • @phaedrux said in IP Camera Idea:

    There is still fertile ground for your scripting attempts. While it is easy to get a stream into the DWC there is currently no way to easily produce time lapses without using Octoprint.

    Absolutely yes!



  • I've been usin the Sannce in streaming and connects evertime no problems at all- I never got it to work with the images but streaming is much better. 🙂


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.