Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can use message text templates in actions that actions that involve sending notifications (see E–mail see E-mail notification, Push notification,  Executing a Web- Execute web query):

TemplateDescription
{cameraNode}

...

Server name (used if

...

a macro start condition is connected to a camera)

...

{eventNode}

...

Server name (used if

...

a macro start condition isn't connected to a camera)

...

{cameraName}

...

Name and a short name of the camera that initiated

...

a macro

...

{cameraLabel}

...

Just the camera name

...

{cameraIpAddress}

...

Camera IP address

...

{cameraId}

...

Camera ID

...

{cameraRef}

...

The VIDEOSOURCEID identifier (

...

...

{dateTime}

...

Time of a macro start in ISO format in the UTC time zone

...

{serverDateTime}

...

Time of a macro start in ISO format in the

...

server time zone

...

{plate}

...

Recognized vehicle license plate

...

{plateDirection}

...

Direction of movement of

...

a vehicle in the frame.

Possible values:

  • 1—from top to bottom;
  • 2—from bottom to top

...

{name}

...

Name of the recognized person from a list of faces (see Faces)

...

{list}

...

Name of a list of faces or a list of LPs (

...

see FacesLPs)

...

...

{gender}gender of the recognized person;

Note
titleAttention!

You can use the {age} and {gender} templates (see Parameters that specify the conditions for starting a macro when recognizing a face) when the following conditions are met:

  1. The Age and gender parameter

...

...

  1. VL) is enabled in the settings of a face detector.
  2. The Face

...

  1. detected: Specified

...

  1. detection event is selected as a start condition for this macro (see Configuring start conditions).

{age}

Age of a recognized person
{gender}Gender of a recognized person
{appearedTime}

...

Time of object detection in the UTC time zone

...

{serverAppearedTime}

...

Time of object detection in the

...

server time zone

...

{rectangles}

...

Coordinates and size of

...

an object that generated an event from

...

a detector
Note
titleAttention!

Statistical templates (used only when a macro is started when a corresponding statistical condition is met (

...

...

).

{cpuUsage}

...

Server CPU usage

...

{netUsage}

...

Server network usage

...

{memoryUsage}

...

Server memory usage

...

{diskUsage}

...

Disk usage

...

{archiveUsage}

...

Archive usage
Info
titleNote
  • In addition to curly braces {}, you can also use %% or [] in templates. For example, %cameraId%.
  • The date/time templates (such as {dateTime}, {serverDateTime}, {appearedTime}, {serverAppearedTime}) offer an extended input option, which allows you to specify the date and time in arbitrary format. A format description parameter must be contained within a pair of @
symbols
  • characters.
 
  • For example
:
  • , {dateTime@%Y–%m–%d %H:%M:%S@}. In this case, the actual format is presented as 2020–10–04 18:43:23.
    Available parameters:
Expand
titleClick here to expand


Parameter

Description

%a

Abbreviation for the day of the week

%A

Full name of the day of the week

%b

Abbreviation for the month 

%B

Full name of the month 

%y

Last two digits of the year

%Y

The year Year in full

%m 

Month of the year 

%d 

Day of the month

%H

Hour in 24h format

%M

Minute as a decimal number 

%S

Second as a decimal number

%F

Fractions of a second

Combined parameters:

Parameter

Description

%D

Equivalent to %m/%d/%y

%T

Equivalent to %H:%M:%S



For example, this macro sends an email of the following format when the Water Level Detection level detector generates an event:
Image Modified

Code Block
Subject: Notification: Attention, water level detectiondetector is triggered.

Server: Server1
Camera: 10.0.11.36 34.Camera
Time: 20190812T085517.926430

...