Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    IP Camera Idea

    General Discussion
    4
    11
    942
    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.
    • piglet74
      piglet74 last edited by

      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.

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

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

        Z-Bot CoreXY Build | Thingiverse Profile

        piglet74 1 Reply Last reply Reply Quote 0
        • piglet74
          piglet74 @Phaedrux last edited by

          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!

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

            What version of firmware and DWC are you running?

            Z-Bot CoreXY Build | Thingiverse Profile

            piglet74 1 Reply Last reply Reply Quote 0
            • piglet74
              piglet74 @Phaedrux last edited by

              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.

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

                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

                Z-Bot CoreXY Build | Thingiverse Profile

                1 Reply Last reply Reply Quote 0
                • piglet74
                  piglet74 last edited by

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

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

                    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.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    JohnOCFII 1 Reply Last reply Reply Quote 0
                    • piglet74
                      piglet74 last edited by

                      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.

                      1 Reply Last reply Reply Quote 0
                      • JohnOCFII
                        JohnOCFII @Phaedrux last edited by

                        @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!

                        1 Reply Last reply Reply Quote 0
                        • Synapsis
                          Synapsis last edited by Synapsis

                          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. 🙂

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