Versions Compared

Key

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

You can use message templates in commands (see W komendach można korzystać z szablonów wiadomości dla komend wysyłających powiadomienia (zobacz: Wyślij e-mail, Wyślij SMSWywołaj komendę URL) that involve sending notifications:

  • {cameraNode} - Server namenazwa Serwera;
  • {eventNode} - Server name (used if the macro launching condition is not linked to a particular cameranazwa Serwera (do użytku, gdy makro nie jest powiązane z konkretną kamerą);

  • {cameraName} - name and short name of the camera that initiated the macronazwa oraz krótka nazwa kamery, która inicjalizuje makro;
  • {cameraLabel} - just the camera's namejedynie nazwa kamery;

  • {cameraIpAddress} - camera's adres IP addresskamery;
  • {cameraId} - camera's ID kamery;
  • {cameraRef}- the identyfikator VIDEOSOURCEID identifier;
  • {plate} - recognized vehicle number rozpoznany numer rejestracyjny;
  • {name} - name of the recognized person from Lists of Facial Templatesnazwa rozpoznanej osoby z List Szablonów Twarzy;

  • {age} - age of the recognized individualwiek rozpoznanej osoby;

  • {gender} - gender of the recognized individualpłeć rozpoznanej osoby;

    Note
    titleAttention!

    The Szablony {age} and i {gender} templates can be applied when the following conditions are met:mogą być stosowane jedynie wtedy, gdy są spełnione następujące wymagania:

    1. Parametr Płeć i Wiek jest aktywny dla narzędzia detekcji twarzy (zobacz: The Gender and Age parameter is activated in facial detection tool settings (see Konfiguracja Narzędzia detekcji twarzy).The Face Appeared: Specified Triggering event is selected as a launch condition for this macro (s)
    2. Jako wyzwalacz makra wyznaczone jest zdarzenie typu Wykryto twarz: Określone wyzwalanie.


  • {appearedTime} - UTC time of object detectionczas UTC wykrycia obiektu;

  • {dateTime} - date and UTC time of triggering the macro in ISO formatdata oraz czas UTC wyzwolenia makra w formacie ISO;

  • {serverDateTime} - local Server time of triggering the macro in ISO formatczas wyzwolenia makra w czasie lokalnym Serwera w formacie ISO;

  • {rectangles} - coordinates and size of the object that triggered the detection tool;koordynaty oraz wielkość obiektów, które wyzwoliły narzędzie detekcji;

  • Szablony statystycznestatistics templates:

    • {cpuUsage}  - percentage of CPU load on a Serverprocent obciążenia CPU Serwera;

    • {netUsage} - percentage of used network bandwidth on a Serverprocent zużytej przepustowości sieci na Serwerze;

    • {memoryUsage} - percentage of used RAM on a Serverprocent zużytej pamięci RAM na Serwerze;

    • {diskUsage} - percentage of disk usageprocent zużycia miejsca na dysku;

    • {archiveUsage} - percentage of Video Footage usageprocent zużycia miejsca w archiwum.

      Note
      titleAttention!

      You can apply statistics templates only if you launch a macro by a corresponding statistical condition (see Szablony statystyczne mogą być stosowane jedynie dla makr, które korzystają z warunków statystycznych (zobacz: Wyzwalanie makr poprzez dane statystyczne).


Info
titleNote

Templates allow  Szablony zezwalają na {} and oraz %%. For example, %cameraId%Przykład: %cameraId%


Info
titleNote

DateSzablony daty/time templates (such as czasu (takie jak: dateTime, serverDateTime, appearedTime and serverAppearedTime) offer an extended input option which allows you to set date and time in arbitrary format. A format description parameter must be contained within a pair of @ symbols. , serverAppearedTime) zezwalają na wyświetlenie czasu i daty w ustalonym formacie. Parametr opisujący format daty/czasu musi być opisany symbolami @. 

PrzykładHere's an example: {dateTime@%Y-%m-%d %H:%M:%S@}. In this case, the actual format is presented as 2020-10-04 18:43:23.

Available parametersDostępne parametry:

Expand


ParameterParametr

DescriptionOpis

%a

Abbreviation for the day of the weekSkrót dnia tygodnia

%A

Full name of the day of the weekDzień tygodnia

%b

Abbreviation for the month Skrót miesiąca

%B

Full name of the month Miesiąc

%y

Last two digits of the yearOstatnie dwie cyfry roku

%Y

Full number of the yearRok

%m 

Month of the year Numer miesiąca roku

%d 

Day of the monthDzień miesiąca

%H

Hour in 24h formatGodzina w formacie 24-godzinnym

%M

Minute as a decimal number Minuta

%S

Second as a decimal numberSekunda

%F

Fractions of second

Ułamek sekundy

Połączone parametryCombined parameters:

ParameterParametr

DescriptionOpis

%D

Equivalent to Jednoznaczne z %m/%d/%y

%T

Equivalent to %HJednoznaczne z %H:%M:%S



E.g. this macro sends an email of the following format when a water level detection tool triggersPrzykład: Makro wysyła wiadomość e-mail o następującym formacie, jeśli narzędzie detekcji poziomu wody zostanie wyzwolone:

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

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

...