Traffic Camera
Traffic Camera
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
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
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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
-
- Posts: 247
- Joined: Sun Jan 16, 2005 11:26 am
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.
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.
Good replies so far. I'll try to answer each one:
How could I do that?you could use another zm to feed from your secret zm
How can I get live video using this?You can link to the images directory within your web server. Not clean, but it will work.
It's a coax based camera unfortunately.If it's an IP-cam you could simply get a jpg with a wget and avoid zm completely.
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
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.
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.
-
- Posts: 9
- Joined: Tue Jun 26, 2007 6:33 pm
- Location: Itapetinga - Bahia - Brasil
Re: Traffic Camera
First, create a user that only see the cam. Hide from him the option and others.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
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
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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
Ok, I got another ZM server going, and I added the remote camera. Works great!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
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..?
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
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
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
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
Create a user that only has view access. Put a wraper with an Iframe to ZM with that username an password on it.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..?