• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

IP Camera Idea

Scheduled Pinned Locked Moved
General Discussion
4
11
1.2k
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.
  • undefined
    piglet74
    last edited by 3 May 2018, 13:31

    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
    • undefined
      Phaedrux Moderator
      last edited by 3 May 2018, 13:41

      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

      undefined 1 Reply Last reply 3 May 2018, 13:46 Reply Quote 0
      • undefined
        piglet74 @Phaedrux
        last edited by 3 May 2018, 13:46

        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
        • undefined
          Phaedrux Moderator
          last edited by 3 May 2018, 13:47

          What version of firmware and DWC are you running?

          Z-Bot CoreXY Build | Thingiverse Profile

          undefined 1 Reply Last reply 3 May 2018, 14:29 Reply Quote 0
          • undefined
            piglet74 @Phaedrux
            last edited by 3 May 2018, 14:29

            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
            • undefined
              Phaedrux Moderator
              last edited by Phaedrux 5 Mar 2018, 15:37 3 May 2018, 15:30

              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
              • undefined
                piglet74
                last edited by 3 May 2018, 16:15

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

                1 Reply Last reply Reply Quote 0
                • undefined
                  Phaedrux Moderator
                  last edited by 3 May 2018, 18:00

                  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

                  undefined 1 Reply Last reply 4 May 2018, 16:00 Reply Quote 0
                  • undefined
                    piglet74
                    last edited by 4 May 2018, 14:47

                    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
                    • undefined
                      JohnOCFII @Phaedrux
                      last edited by 4 May 2018, 16:00

                      @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
                      • undefined
                        Synapsis
                        last edited by Synapsis 5 Apr 2018, 19:24 4 May 2018, 19:24

                        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
                        7 out of 11
                        • First post
                          7/11
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA