Trigger Immix Alarm

Trigger an Alarm in Immix using the SMTP interface when a trigger condition is met.

Overview

The node sends an Immix Alarm using SMTP based on events generated by previous nodes, or a custom trigger condition. It can also send a link to live stream, attach a snapshot as well as any Clips saved Locally using Save Clip Node.

The event_source property controls how this node is triggered:

  • built_in (Events from previous nodes): Sends an Immix Alarm when other nodes in the pipeline (such as annotate_line_counter, event, etc.) generate events. The triggering event names are available to the immix_extra_text template via the events variable.
  • custom (Custom Event): Sends an Immix Alarm when the trigger condition evaluates to true.

Inputs & Outputs

  • Inputs : 1, Media Format : Raw Video
  • Outputs : 1, Media Format: Raw Video
  • Output Metadata : None

Properties

PropertyDescriptionTypeDefaultRequired
event_sourceGenerate Immix Alarms from events generated by other nodes or a Custom defined event. Options: Events from previous nodes (built_in); Custom Event (custom).enumcustomYes
triggerSend an alarm when this condition evaluates to true. Conditional on event_source being custom.trigger-conditionnullYes
include_snapshotInclude snapshot from trigger time?booltrueNo
media_nodeIncludes the most recent clip from the named Save Clip node with the alarm. The node must be configured to store clips locally. Accepted node type: clip.stringnullNo
livestream_nodeSelect Stream WebRTC Node to use. If specified, includes the live stream URL from this WebRTC Node with the Alarm. Accepted node type: stream_webrtc_out.stringnullNo
enabledEnabledbooltrueNo
immix_serverIP Address of the Immix SMTP Server. Conditional on enabled being true.stringnullYes
immix_portPort of the Immix SMTP Server. Conditional on enabled being true.numbernullYes
immix_use_tlsIf enabled, a TLS socket will be used for the Immix SMTP session. Your Immix server must support the STARTTLS SMTP extension to use this. Conditional on enabled being true.boolnullNo
immix_to_emailEmail address associated with the System. Conditional on enabled being true.stringnullYes
immix_alarm_numberImmix alarm number for the numbernullYes
immix_event_typeImmix enumObjectDetectedYes
immix_extra_textSee node documentation for details on template variables.stringnullNo
immix_locationA description of location where the alarm occurred, e.g. latitude and longitude.stringnullNo
intervalMin. time between consecutive alarms. Unit: seconds.number0No
max_media_wait_timeMax. time to wait until a media clip is available. Unit: seconds.number10No
enable_universal_bridge_overrideIf enabled, overrides "To" email address with the email address received by the Universal Bridge. Set this to true in a pipeline used with the Universal Bridge.booltrueNo

Template Syntax

The following Template variables are available to use in Email Subject and Body. The templates can be built using Jinja2 Template Syntax.

Variables available to the template:

VariableDescription
eventsList of event names from previous nodes that triggered this alarm (when event_source is built_in).
metaFrame metadata. Contains keys like nodes, objects, and other custom metadata inserted by Custom function node.
application_idThe application ID of the deployment that produced this metadata.
application_nameThe application name of the deployment that produced this metadata.
deployment_idThe deployment ID of the deployment that produced this metadata.
deployment_nameThe deployment name of the deployment that produced this metadata.
source_nameThe name of the source that produced this metadata.
livestream_urlThe URL of the livestream.

Example templates

Static text content:

Text content

Reference specific metadata:

Person detected on {{ source_name }}. View live stream at {{ livestream_url }}

Metadata reinserted as is:

{{ meta | tojson }}

Output Metadata

Node does not insert any output metadata; upstream metadata continues through the pipeline


Did this page help you?