Skip to content

Commit

Permalink
Add ELOC substitution to get Latitude and Longitude of event
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Jul 5, 2024
1 parent 481210f commit 84e1869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/userguide/filterevents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Here is what the filter window looks like
* %ED% Event description
* %ET% Time of the event
* %EL% Length of the event
* %ELOC% Location of event Latitude, Longitude
* %EF% Number of frames in the event
* %EFA% Number of alarm frames in the event
* %EST% Total score of the event
Expand Down
1 change: 1 addition & 0 deletions scripts/zmfilter.pl.in
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ sub substituteTags {
$text =~ s/%EN%/$Event->{Name}/g;
$text =~ s/%EC%/$Event->{Cause}/g;
$text =~ s/%ED%/$Event->{Notes}/g;
$text =~ s/%ELOC%/$Event->{Latitude}, $Event->{Longitude}/g;
$text =~ s/%ET%/$Event->{StartDateTime}/g;
$text =~ s/%EVF%/$$Event{DefaultVideo}/g; # Event video filename
$text =~ s/%EL%/$Event->{Length}/g;
Expand Down

0 comments on commit 84e1869

Please sign in to comment.