I have several cameras around the house that have been humming along with Zoneminder for years. I recently got a 3D Printer and I want to be able to look in on it as it prints. I have a camera set up in ZM for the printer. I have a little fanless PC running the printer using Octoprint.
What I really want is a (permanent) MJPEG stream URL I can use in Octoprint so I can see the printer camera from within the Octoprint database. How do I (can I?) get a permanent URL that Octoprint can use to embed the camera feed in its interface?
I've tried searching but I haven't been able to come up with the right combo of keywords to find the results I'm looking for.
URL for use in Octoprint
Re: URL for use in Octoprint
I have a couple of my ZM cams streaming on a web server. I've set up a simple user and password and limited that user's access to only view specific cams.
Here is the HTML code I use: <img src="http://192.168.1.4/zm/cgi-bin/nph-zms?s ... &pass=user">
Most of the settings should be clear.
scale is the % of the original image
monitor is the ID number of the cam
You can use an IP address or URL
Here is the HTML code I use: <img src="http://192.168.1.4/zm/cgi-bin/nph-zms?s ... &pass=user">
Most of the settings should be clear.
scale is the % of the original image
monitor is the ID number of the cam
You can use an IP address or URL
Re: URL for use in Octoprint
Thanks. That helps. I have actually switched over to using Klipper with Mainsail to control my 3D printers (this hobby snowballed quickly lol).
I can see my printer camera stream (Mainsail calls this 'URL Stream') when I use a URL like:
But Mainsail is also looking for a 'URL Snapshot' that it uses more than the stream URL. I have tried a URL like:
which brings up a still image on my web browser but doesn't seem to satisfy Mainsail for some reason. Any ideas?
I can see my printer camera stream (Mainsail calls this 'URL Stream') when I use a URL like:
Code: Select all
http://server.local/zm/cgi-bin/nph-zms?mode=jpeg&maxfps=5&monitor=17&user=theUser&pass=thePassword
Code: Select all
http://server.local/zm/cgi-bin/nph-zms?mode=single&monitor=17&user=theUser&pass=thePassword
Re: URL for use in Octoprint
I use this one:
I have searched al lot before I got this working.
Code: Select all
http://192.168.0.1/zm/cgi-bin/zms?mode=single&monitor=3&user=username&pass=password
Re: URL for use in Octoprint
I was just coming here to post that I finally figured out the right URL for the snapshot view. Your answer is the same thing I was going to post. Thanks.