Page 1 of 1

external control function monitor (solved)

Posted: Tue Oct 14, 2008 4:19 pm
by jaume85
hi, i like control function of monitors with external triggers.
i have tried functions zmMonitorDisable and zmMonitorEnable but not work, i don't want be controlled with time.

someone help me??

thx!

Posted: Wed Oct 15, 2008 1:18 am
by cordel

Posted: Wed Oct 15, 2008 9:04 am
by jaume85
yes, I know, but I do not want to control of time I want to control it at any time.

Thanks cordel.

i want a function do stop monitor, zmMonitorEnable stop monitor but for only 10 seconds.

Posted: Thu Oct 16, 2008 2:03 am
by cordel
Then you will have to use zmu or create a perl script to use the perl modules.
zmu --help
should give you plenty of information or for the perl script reference the zoneminder modules.

Posted: Fri Oct 17, 2008 10:19 am
by jaume85
but i don't understand because when use function zmMonitorEnable only stop 30 seconds.

this is function contents in SharedMem.pm:

sub zmMonitorEnable( $ )
{
my $monitor = shift;
my $action = zmShmRead( $monitor, "shared_data:action" );
$action |= ACTION_SUSPEND;
zmShmWrite( $monitor, { "shared_data:action" => $action } );

}

Posted: Wed Oct 29, 2008 9:48 am
by jaume85
The problem is solved.

when used zmMonitorEnable only stop for 30 seconds is caused for defined option ZM_MAX_SUSPEND_TIME=30 change for 0 and solved!!