Page 1 of 1
Traffic Camera
Posted: Tue Sep 04, 2007 6:51 pm
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
Posted: Tue Sep 04, 2007 9:08 pm
by jameswilson
you could use another zm to feed from your secret zm
Posted: Wed Sep 05, 2007 4:32 am
by Lee Sharp
You can link to the images directory within your web server. Not clean, but it will work.
Posted: Wed Sep 05, 2007 6:02 am
by Flasheart
If it's an IP-cam you could simply get a jpg with a wget and avoid zm completely.
Posted: Wed Sep 05, 2007 6:05 am
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.
Posted: Wed Sep 05, 2007 7:44 am
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?
Posted: Wed Sep 05, 2007 8:23 am
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.
Re: Traffic Camera
Posted: Wed Sep 05, 2007 11:57 am
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

Posted: Wed Sep 05, 2007 12:48 pm
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
Posted: Wed Sep 05, 2007 4:29 pm
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..?
Posted: Wed Sep 05, 2007 11:08 pm
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
Posted: Thu Sep 06, 2007 3:56 am
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.