To create a macro, click the Create button in the required list.
Then do as follows:
Select the macro working mode (2):
Mode | Event-driven | Cyclic |
---|---|---|
Never | Manual execution only (see Working with Dialog Board, Macros control) | Disabled, manual execution is possible (see Macros control) |
Always | Always on | Always on |
Time schedule | Runs within the selected time schedule (see Creating schedules). Manual execution is possible at any time | Runs within the specified time schedule |
Note
When creating a macro, the Always mode is used by default.
If you need to add a macro to the control menu on the layout (see Macros control), set the corresponding checkbox (3).
To configure event-driven macros, click the button and select one or more trigger events (4, see Configuring filters for event-driven macros). If the event filter is left blank, the macro can be executed only manually.
Note
To delete an event from the filter, click the button.
Add one or more actions to the macro (5, see Settings specific to actions). Click the button to do this. To delete an action, click the button.
Note
The macro can be executed for a group of cameras (see Creating a system of groups and subgroups).
Note
To hide the start conditions and action for the macro, click the action name.
A cyclic macro can be launched automatically at a specified time interval, or at a random moment within the specified time interval. To configure this action, do as follows:
Set the Random checkbox (2), if you need to launch the macro at a random moment set by the Heartbeat interval parameter. For example, if the interval is set to 8 hours, then once every 8 hours at a random moment, the macro will be launched.
Attention!
If the macro working mode is linked to a time schedule, and the launch time falls out of the schedule, the macro will not be launched.
To save the macro, click the Apply button.
Attention!
By default, the created macros are available only to the users from the admin group (see Creating and configuring roles).
The created macros are displayed in the list. If the Never mode is selected for the macro, it is grayed out.
You can copy macros. To do it, do the following:
A new macro with the similar parameter will be created.
Note
To create an empty macro with no parameters specified, select any of the common macros groups, and click the Create button.
To delete a macro, select it in the list and click the Remove button.