URL for use in Octoprint

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
pbcrunch
Posts: 7
Joined: Wed Mar 08, 2017 3:58 am

URL for use in Octoprint

Post by pbcrunch »

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.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: URL for use in Octoprint

Post by bbunge »

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
pbcrunch
Posts: 7
Joined: Wed Mar 08, 2017 3:58 am

Re: URL for use in Octoprint

Post by pbcrunch »

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:

Code: Select all

http://server.local/zm/cgi-bin/nph-zms?mode=jpeg&maxfps=5&monitor=17&user=theUser&pass=thePassword
But Mainsail is also looking for a 'URL Snapshot' that it uses more than the stream URL. I have tried a URL like:

Code: Select all

http://server.local/zm/cgi-bin/nph-zms?mode=single&monitor=17&user=theUser&pass=thePassword
which brings up a still image on my web browser but doesn't seem to satisfy Mainsail for some reason. Any ideas?
kockie
Posts: 1
Joined: Tue May 16, 2023 1:29 pm

Re: URL for use in Octoprint

Post by kockie »

I use this one:

Code: Select all

http://192.168.0.1/zm/cgi-bin/zms?mode=single&monitor=3&user=username&pass=password
I have searched al lot before I got this working.
pbcrunch
Posts: 7
Joined: Wed Mar 08, 2017 3:58 am

Re: URL for use in Octoprint

Post by pbcrunch »

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.
Post Reply