Traffic Camera

Support and queries relating to all previous versions of ZoneMinder
Locked
tnats
Posts: 15
Joined: Fri Jun 01, 2007 4:45 pm

Traffic Camera

Post by tnats »

We have one of our camera facing the highway next to us. I have made a deal with a local community website to post our video from the camera.

The problem is linking to the stream or still of our camera. I don't want to give out the full URL as someone can go back and look right into our zoneminder. I can't password it because it won't work for their users.

Here is the URL:
http://our_zoneminder_url/cgi-bin/nph-zms?mode=jpeg&monitor=7&sca
le=100

So, I've tried to write a script using wget and it just grabs the HTML with no image. Anyone know how I can provide the live stream or stills from this camera without giving away my full URL?

Thanks,
Tom
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

you could use another zm to feed from your secret zm
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

You can link to the images directory within your web server. Not clean, but it will work.
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Post by Flasheart »

If it's an IP-cam you could simply get a jpg with a wget and avoid zm completely.
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

Post by kevin_robson »

Maybe 2 Apache virtual hosts - one with password protection the other without?
On the public one I guess you'd have to strip out most of the php apart from the live stream page, and the events dir would need to be soft linked between the two? The other can be a password protected full system.
Not sure it would work or not, but might be worth investigating.
tnats
Posts: 15
Joined: Fri Jun 01, 2007 4:45 pm

Post by tnats »

Good replies so far. I'll try to answer each one:
you could use another zm to feed from your secret zm
How could I do that?
You can link to the images directory within your web server. Not clean, but it will work.
How can I get live video using this?
If it's an IP-cam you could simply get a jpg with a wget and avoid zm completely.
It's a coax based camera unfortunately.

kevin_robson
That still doesn't help me as they could follow the main URL back to the ZM page. How could I strip out the URL?
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

Post by kevin_robson »

I think you'd have to remove the main application php files from that virtual host, and just leave enough php files for them to stream the one camera.

You might also have to modify the php hard code that so it defaults to only the monitor you want them to see and doesnt take URL parameters.

You'd have to look into the finer details, it was just a thought.
agilseguranca
Posts: 9
Joined: Tue Jun 26, 2007 6:33 pm
Location: Itapetinga - Bahia - Brasil

Re: Traffic Camera

Post by agilseguranca »

tnats wrote:We have one of our camera facing the highway next to us. I have made a deal with a local community website to post our video from the camera.

The problem is linking to the stream or still of our camera. I don't want to give out the full URL as someone can go back and look right into our zoneminder. I can't password it because it won't work for their users.

Here is the URL:
http://our_zoneminder_url/cgi-bin/nph-zms?mode=jpeg&monitor=7&sca
le=100

So, I've tried to write a script using wget and it just grabs the HTML with no image. Anyone know how I can provide the live stream or stills from this camera without giving away my full URL?

Thanks,
Tom
First, create a user that only see the cam. Hide from him the option and others.
After, give this link to your friends:
http://your_zm_server/zm/index.php?action=login&username=(youruser)&password=(yourpass)&view=watchfeed&mode=&mid=(camid)&scale=100&control=
This could be a solution.
Sorry my english :oops:
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

my way just needs another zm box, you use that and setup your current zm box as an ip camera feed. But would need 2 boxes or a vm server
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
tnats
Posts: 15
Joined: Fri Jun 01, 2007 4:45 pm

Post by tnats »

jameswilson wrote:my way just needs another zm box, you use that and setup your current zm box as an ip camera feed. But would need 2 boxes or a vm server
Ok, I got another ZM server going, and I added the remote camera. Works great!

Now, if someone goes to my 2nd ZM, they can change things because it's not locked down. How can I lock it down and still allow the URL to be accessed by anyone..?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

use firefox and look at the properties for the stream
that will give you a url

use that url in a new browser (firefox) and it will open only the video
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

tnats wrote:
jameswilson wrote:Now, if someone goes to my 2nd ZM, they can change things because it's not locked down. How can I lock it down and still allow the URL to be accessed by anyone..?
Create a user that only has view access. Put a wraper with an Iframe to ZM with that username an password on it.
Locked