This section contains a set of scripts that can be executed by users.
If you have rights, adding, editing and deleting operations for a particular object is available in its End View.
You can also add a set of default operations to the object class in the configuration window in Object classes management section.
Control buttons:
- execute operation;
- change operation;
- delete operation;
- add operation.
There are two opeations types, depending on the choice of which the fields number and content to be filled in vary:
- Program / script execution runs executable file.
- MQTT message sends a message using the MQTT protocol.
Fields description:
Field | Description in program / script | Description in MQTT |
---|---|---|
Name | Operation name displayed in web interface | |
Type | Drop-down list with available operation types. | |
Subtype | Drop-down list with available subtypes:
| |
Topic | MQTT topic to send message. | |
Message | MQTT message text. | |
Arguments | Arguments to pass to the script. | |
Description | Some valuable description for the created operation. |
You can use following variables in operations:
- {{id}} - ID of the object, where the operation is executed;
- {{properties.property_name}} - value of the object property, where the operation is executed (please specify the name of the property to use its value);
- {{user.id}} - ID of the user, who executes the operation;
- {{user.login}} - login of the user, who executes the operation.
You can use variables in:
- the topic and the message of "MQTT message" operation;
- text of the script of "Program/script execution → Script with text".