Event Filter only %EI% ?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
znmdruser92102
Posts: 3
Joined: Fri May 23, 2025 5:07 am

Event Filter only %EI% ?

Post by znmdruser92102 »

I'm trying to run a script with the event filter. I only need the event id. When I use %EI% it gives the event id but also the path to the event.

How can I just get the event id without the path? Thanks.
User avatar
iconnor
Posts: 3364
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Event Filter only %EI% ?

Post by iconnor »

Yeah the path thing is a 1.36 thing... in 1.37 it won't do that.

You could alter your zmfilter.pl to behave like 1.37
line 1062:
my $command = $filter->{AutoExecuteCmd}.' '.$event_path;
$command = substituteTags($command, $filter, $Event);

Make it look like:
my $command = $filter->{AutoExecuteCmd};
if ($command =~ /%\w+%/) {
$command = substituteTags($command, $filter, $Event);
} else {
$command .= ' '.$Event->Path();
}
Post Reply