Page 1 of 1

Capture every minute

Posted: Mon Nov 12, 2007 9:09 pm
by theneb
Hi all, I'm looking to just use zoneminder to do a single capture from a camera every minute. Is there a command I can run with cron to achieve this? Or a full reference to what exactly each zm command does?

Cheers

Posted: Mon Nov 12, 2007 9:18 pm
by jameswilson
just set the monitor to 0.016 fps or 1 fps and a frame skip of 59

Posted: Sun Dec 02, 2007 10:17 am
by theneb
This works but we there are serious performance issues, mainly due to the fact that we require to record at realtime for security and one frame per minute for general users.
Defining two sources locks up the cpu and delays recording, ie the timer on the source will show that it's capturing every second but the image will refresh every 4 seconds.

Any ideas?

Posted: Sun Dec 02, 2007 7:59 pm
by jameswilson
i dont understand, maybe a full explaination of what your tring to achieve?

Posted: Mon Dec 03, 2007 5:13 am
by theneb
I need to keep a realtime recording of the camera,
Then I also need to capture one frame every minute and put that on a website.

Posted: Thu Dec 06, 2007 4:46 pm
by zoneminder
Have you tried making the second monitor (the one minute interval one) point at a zms stream of a single jpeg of the first and setting that to capture every minute?

Posted: Thu Dec 06, 2007 8:03 pm
by cordel
You can set a cron job on the web server to wget an image from the ZM machine with:
wget http://<your_IP_for_ZM>/cgi-bin/nph-zms?mode=single&monitor=2&scale=100

This will pull the current image from the zm monitorID 2.

You can also use zmu to pull one image on the ZM macine it self.

zmu -m2 -i [-U<username> -P<password>]

Posted: Wed Dec 12, 2007 7:29 pm
by theneb
Hi Cordel, cheers for the reply.
zmu works fine :D

Posted: Mon Jan 14, 2008 8:40 am
by slahm
Does anyone have an example Cron Job to PUSH the image from zmu to an ftp server, as my connection is unreliable, and needs something to wake it up sometimes - it is a sat connection. They also do some very creative incoming shaping.

Any advice here?

Thanks in advance.

Peter Hunt :D

Capture every minute

Posted: Wed Apr 16, 2008 2:29 am
by gpMobile
When I enter http://<your_ip_for_zm>/cgi-bin/nph-zms?mode=single&monitor=2&scale=100
into my browser I get a blank page. Trying wget http://<your_ip_for_zm>/cgi-bin/nph-zms?mode=single&monitor=2&scale=100 just gives an empty file. Is there something else I am missing. I would love to get a capture every minute.

Program working fine otherwise. Just trying to fine tune out cloud shadows and fine tune in cars pulling into the driveway :) Using 1.23.2 on Ubuntu installed from a .deb package.

Thx.

Posted: Wed Apr 16, 2008 9:19 am
by jameswilson
do you have auth enabled?

Posted: Wed Apr 16, 2008 2:52 pm
by gpMobile
Not yet.

Posted: Wed Apr 16, 2008 3:10 pm
by jameswilson
when you view a live image through the console, right click on the image ot view the path and post it here

Posted: Wed Apr 16, 2008 3:41 pm
by gpMobile
Stupidity on my part. I figured it out while messing with zmu. It helps to address the right monitors. I have 3, 7 & 10 but I was relating them to my actual /dev/video devices which are 0, 1 & 2. It works now.

Thanks