Go to documentation repository
Page History
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 SMS, Wywoł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 title Attention! 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:
- 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)
- 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 title Attention! 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 | ||
---|---|---|
| ||
Templates allow Szablony zezwalają na {} and oraz %%. For example, %cameraId%Przykład: %cameraId%. |
Info | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||
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:
|
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 |
...