Page 1 of 1
Taking Periodic Still Images With ZoneMinder
Posted: Tue Jan 19, 2010 3:00 am
by BlankMan
I've got ZoneMinder up and running with one camera at the moment with two zones in motion detect mode. I'd like to have it take a picture every 5 or 10 minutes and put it someplace that I can grab or link to. I'd prefer it overwrote the same picture each time but if not that's ok, can ZoneMinder be set to do this while still doing it's motion detect and recording based on the two zones? If so, how?
Re: Taking Periodic Still Images With ZoneMinder
Posted: Wed Jan 20, 2010 1:10 am
by troyy0206
BlankMan wrote:I've got ZoneMinder up and running with one camera at the moment with two zones in motion detect mode. I'd like to have it take a picture every 5 or 10 minutes and put it someplace that I can grab or link to. I'd prefer it overwrote the same picture each time but if not that's ok, can ZoneMinder be set to do this while still doing it's motion detect and recording based on the two zones? If so, how?
I think there is an option called "Morecord" or something like that. Someone correct me if i'm wrong, but I believe it works on the max fps settings on the camera settings where you can set one to say, "2" and one to "15" and it will record 2 fps and then kick up to 15 fps in alarm mode on motion detection. You might also check your camera options. Some cameras have the option to upload images to an FTP site, though I'm not sure about doing it on a scheduled basis. I figure some Linux guru might be able to tell you how to set up a CRON job to do it, maybe?
Posted: Fri Jan 22, 2010 9:55 pm
by clipo
There is one solution I use to take periodic images and upload them to my webserver using the ZMU command, look at my mini guide at the end of this post
http://www.zoneminder.com/forums/viewto ... highlight=
to take a simple image ever few minutes it might be a good idea to use crontab to take the image, simply place a command similar to this in crontab
*/5 * * * * root /home/admin/zmu -m 1 -U admin -P password -i -v -S 100)
and this will put an image from the first camera in Zoneminder into the users root folder.
Posted: Sat Jan 23, 2010 3:42 pm
by BlankMan
clipo Thanks! That sounds exactly like what I'm looking for. I want to take a snapshot and show it on my Weather site so along with all the weather data one can see a picture of what it actually looks like outside. I'll give that a try!
Posted: Sat Jan 23, 2010 4:23 pm
by clipo
glad to help, i personally have a php script that calls that function to make real time images to display on my webpage to save me having to login to just quickly check on things.
if the zoneminder system is remote or a different system to the weather station one then you can make a script to upload to image every so many seconds or as i have done with a remote system make a php script to generate an image on demand then wget on the weather system to copy the image over ready for displaying. This option saves the zoneminder from being vistable from the weather station or to simply keep its address private, and if it updates on demand will reduce the load on the oneminder system.
happy to help out with these as ive done few different configurations
clipo
Posted: Sun Jan 24, 2010 7:55 am
by BlankMan
clipo Perfect! Works like a champ! Got a cron job that graps the pic, crops it a bit, time stamps it, makes a thumbnail and does this where the Weather page points to it. Thanks again!