Page 1 of 1

zmtrack.pl

Posted: Thu Apr 19, 2007 8:57 am
by cdbao
Could we use zmtrack.pl to track multi camera?
I used zmtrack.pl to trigger a scrip *.pl when has alarm
perl zmtrack.pl -m 2

Now I want use zmtrack for multi camera, how can we do this task?

please help me !! thanks

Posted: Sat Apr 21, 2007 1:36 am
by cdbao
anybody please help me!! thanks so much!!

Posted: Mon Apr 23, 2007 12:02 am
by jameswilson
cdbao, i dont understand the question mate

Posted: Mon May 07, 2007 4:38 am
by cdbao
Okey!! its mean :
I want to detect a camera when it has motion, it will be alarm through Telephone or action my Scripts..
and I has done this task by a command : zmtrack.pl -m id_camera

in zmtrack.pl file I was added this line
if ( DBG_LEVEL > 0 && $alarmed )
{
print( "Left alarm state bleh bleh\n" );
$alarmed = undef;
system("php /usr/alarm_camera.php");
}
if ( ($monitor->{ReturnLocation} >= 0) && ($last_alarm > 0) && ((time()-$last_alarm) > $monitor->{ReturnDelay}) )
{
Debug( "Returning to location ".$monitor->{ReturnLocation}."\n" );
Suspend( $monitor );
Return( $monitor );
Resume( $monitor );
$last_alarm = 0;
}
It work perfect for ONE Camera.
I want to run this task for 8 camera , I dont think I must run 8 command : zmtrack.pl -m id_camera[1..8]

Please show me some solution for this.

Thanks and Regard.

Posted: Tue May 08, 2007 2:08 am
by cdbao
Everybody !! could help me this task!!
Very Thanks :(