Page 1 of 1
ZoneMinder And Applets
Posted: Mon Sep 12, 2005 12:52 am
by wa4bro
I am a newbie to ZoneMinder and find it very interesting.
I would like to use Linux to serve images for my weather website as I find windows just not stable enough for long periods of time (Whats new huh?)
I currently use a Flash Script for updating my webcams vs using a java push/pull script. I guess my real question is does zoneminder produce a Fixed Jpg image anywhere ? SOmething I can grab from a Flash Script from a website? I noticed it writes files in the events directory but rotating file names. Can it be made to write a fixed image name somewhere in the root that can be grabbed by a script?
Is anyone doing this already to serve images to a website using a script etc ? I would be interested in seeing how this is done. As I said I am a newbie to ZoneMinder and Linux, so be easy on me <G>
Thanks,
Dan
Posted: Mon Sep 12, 2005 7:04 am
by cordel
Yes and no,
I think you'll find that you would be able to get zm to do what you want though as there is a url path for still jpeg images.
http://192.168.xxx.yyy/cgi-bin/zm/zms?
mode=single&monitor=2&scale=100
Or if you want the rest of your system password protected, I'd create a user that has only the ability to get pictures and use something like this.
http://192.168.xxx.yyy/cgi-bin/zm/zms?m ... =100&user=StreamUser&pass=
StreamPassword
This would be the best way to accomplish what you are after.
Regards,
Cordel
Posted: Mon Sep 12, 2005 5:25 pm
by wa4bro
cordel wrote:Yes and no,
I think you'll find that you would be able to get zm to do what you want though as there is a url path for still jpeg images.
http://192.168.xxx.yyy/cgi-bin/zm/zms?
mode=single&monitor=2&scale=100
Or if you want the rest of your system password protected, I'd create a user that has only the ability to get pictures and use something like this.
http://192.168.xxx.yyy/cgi-bin/zm/zms?m ... =100&user=StreamUser&pass=
StreamPassword
This would be the best way to accomplish what you are after.
Regards,
Cordel
Thanks Cordell for the info, But I can not seem to get an image. Should there be a camera name ie: Cam_1 , Cam_2 somehwere in the string ?
Would there be an associated image name too ie: Cam_2.jpg ?
Dan
Posted: Mon Sep 12, 2005 6:36 pm
by krzys31337
Cordel: are U sure about: user=StreamUser&pass=StreamPassword
i've made some simple patch witch allowed "seeing" montage/cycle and loggin. zms proably will not accept user/pass.
Posted: Mon Sep 12, 2005 8:30 pm
by cordel
Yes I am sure as I do it all the time that this works. zms has authentication built into it
The camera is set by monitor=2 to tell it witch camera you want by the monitorID from the database.
Regards,
Cordel
Posted: Mon Sep 12, 2005 11:27 pm
by wa4bro
cordel wrote:Yes and no,
I think you'll find that you would be able to get zm to do what you want though as there is a url path for still jpeg images.
http://192.168.xxx.yyy/cgi-bin/zm/zms?
mode=single&monitor=2&scale=100
Or if you want the rest of your system password protected, I'd create a user that has only the ability to get pictures and use something like this.
http://192.168.xxx.yyy/cgi-bin/zm/zms?m ... =100&user=StreamUser&pass=
StreamPassword
This would be the best way to accomplish what you are after.
Regards,
Cordel
Well I finally got it to work.
The actual string used was
http://192.168.xxx.yyy/cgi-bin/nph-zms?mode=single&monitor=2&scale=100
Using the flash script I use from my website grabs the images nice and smoothly!
Now maybe I can actually move my webcams to a Linux base for the back end.
If anyone is interest in seeing how the CamStream Flash Applet, By Dr. Tim West, works can visit my website at
http://RoswellWeather.Net There are many advantages to using Flash for updating the grab vs a java applet.
I use ImageSalsa software to grab the backend image, process the weather data to write to the grabbed image then serve it.
The real advaantage for me is to not have the Windoze machine processing the actual video from the cam interfaces thus taking some load off the Windows client that is already running weather station software, image software and .wmv video!
Many thanks to Phill, Cordel, Ross and the rest of the gang!
Phil, my donation went in today!
Dan
Posted: Tue Sep 13, 2005 1:20 pm
by zoneminder
Thanks Dan, much appreciated. I'm interested in using flash as a viewer option. Is there somewhere the script can be downloaded so I can have a play?
Phil
Posted: Wed Sep 14, 2005 7:03 am
by Blazer
wa4bro wrote:
If anyone is interest in seeing how the CamStream Flash Applet, By Dr. Tim West, works can visit my website at
http://RoswellWeather.Net There are many advantages to using Flash for updating the grab vs a java applet.
Are you using the X10 Ninja for panning? I've been trying to figure out how to control it from Linux.
Posted: Thu Sep 15, 2005 1:04 am
by wa4bro
zoneminder wrote:Thanks Dan, much appreciated. I'm interested in using flash as a viewer option. Is there somewhere the script can be downloaded so I can have a play?
Phil
Handled by PM
Dan
Posted: Thu Sep 15, 2005 1:23 am
by wa4bro
Blazer wrote:wa4bro wrote:
If anyone is interest in seeing how the CamStream Flash Applet, By Dr. Tim West, works can visit my website at
http://RoswellWeather.Net There are many advantages to using Flash for updating the grab vs a java applet.
Are you using the X10 Ninja for panning? I've been trying to figure out how to control it from Linux.
Yes it is an X10 product. It is actually radio controled (and not very well) vs line controlled like the rest of the x10 product line.
I guess I have owned about 6 of these so far. The control part of the unit is the real problem. They tend to pan and tilt for a period of days to weeks but eventually EVERY SINGLE ONE quits responding to the tilt controls. They eventually quit responding to directive pan controls too. The current one that you see on the site has been auto panning now for about a year. It will not respond to any commands and the sweep pans to the initial points I programmed in it when it was new. Since I have Solar on the camera and the pan tilt unit it rarely sees a power down except when I feel froggy and get up on the roof to clean the lens or something.
I guess the nice thing is as soon as power is reapplied, it starts to pan the programmed stops again. I just installed another X10 Ninja up there with another camera a week ago. It worked great for about 4 days then quit responding to all commands. Now I am not 100% sure the unit went bad or if I lost 12V to the unit during a tilt operation. I have not had the time to recheck the connections since putting it up. Since it failed and went stationary so quickly, I am suspecting supply voltage. I was working in the dark on the roof on the quick install <G>
I guess one day maybe they will improve them. For my purpose of just scanning fixed horizontal points, it has made the camera more interesting than staying fixed.
Dan