external control function monitor (solved)

Support and queries relating to all previous versions of ZoneMinder
Locked
jaume85
Posts: 20
Joined: Mon Oct 06, 2008 5:13 pm

external control function monitor (solved)

Post 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!
Last edited by jaume85 on Wed Oct 29, 2008 10:00 am, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

jaume85
Posts: 20
Joined: Mon Oct 06, 2008 5:13 pm

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
jaume85
Posts: 20
Joined: Mon Oct 06, 2008 5:13 pm

Post 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 } );

}
jaume85
Posts: 20
Joined: Mon Oct 06, 2008 5:13 pm

Post 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!!
Locked