Versions Compared

Key

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

Для повышения информативности уведомлений, в их тексте используются макросы. В момент отправки сообщения, макросы заменяются на соответствующую им информацию: время, имя датчика, его значение и прочее.

Макрос обозначается знаком процента и цифрой, соответствующей содержащейся информации.

Доступны следующие макросы:

...

Макрос

...

Описание

...

To increase the information content of notifications, users can uses macros. At the time of sending the notifications, macros will be replaced with the corresponding information: Time, sensor name, its value, and so on.

The macros is indicated by the percent sign and the number corresponding to the contained information.

The following macros are available:

Macros

Specification

Illustration sample
%1A verbal description of the triggered logic.

if

    'Onboard Temperature' (id=201001) in state 'high alarm';

and    'Onboard Voltage DC' (id=203001) in state 'high alarm';

then

    'Power-1' (id=304001) changes to state 'on' immediately, once;

    'Simple_Mail' (id=601001) changes to state 'on' immediately, once;

%2Состояние элементов логической схемы, на момент срабатывания схемы, включенных в условия IFThe state of the logic circuit elements included in the IF conditions, at the time when the circuit is triggered.

'Onboard Temperature' (id=201001) in state 'high alarm';

'Onboard Voltage DC' (id=203001) in state 'high alarm';

%3Время срабатывания логической схемыTrigger time of the logic circuit.11:32:28 2017/06/13
%4Название логической схемыName of the logic circuit.'Logic_Temp_01'
%5Имя датчика, изменение состояния которого привело к срабатыванию логической схемы. Здесь выводится имя последнего сработавшего датчика, после которого сработала логическая схемаThe name of the sensor, the change in state of which led to the activation of the logic circuit. Here is displayed the name of the sensor, from which the logic circuit is triggered.'Onboard Temperature'
%6Состояние датчика, инициировавшего срабатывание логической схемыThe state of the sensor that triggered the logic circuit.'high alarm'
%7Значение величины, измеряемой датчиком или его логический уровень на момент срабатывания логической схемыThe sensor value or its logic level at the time of the triggering of the logic circuit.'27.60'
%8Идентификатор датчика, инициировавшего срабатывание логической схемыID of the sensor that triggered the logic circuit.'201001'

...

Macros parameterization

Макросы %5, %6, %7 имеют возможность параметризации по идентификатору элемента {id}. Т.е. для этих макросов возможно указать конкретный элемент, для которого будет вычислен макрос.

...