Trigger Notification

Send an e-mail or push notification when a trigger condition is met.

Overview

The node sends an Notification via Email or Push when a trigger condition is met. It can also send a link to live stream, attach a snapshot as well as any Clips saved Locally using Save Clip Node.

Inputs & Outputs

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

Properties

PropertyDescriptionTypeDefaultRequired
trigger_sourceSend Notifications from events generated by other nodes or a Custom defined trigger. Options: Events from previous nodes (built_in); Custom Trigger (custom).enumcustomYes
triggerSend an alarm when this condition evaluates to true. Conditional on trigger_source being custom.trigger-conditionnullYes
enabledNotifications EnabledbooltrueNo
send_modeDefault sends notifications via Lumeo's managed notification service; recipients and delivery channels are configured in your Lumeo account. Direct lets you specify recipient email addresses and your own SMTP server. Options: Default (default); Direct (direct).enumdefaultYes
notification_typeNotification Type. Options: Email Notification (email); Push Notification (push). Conditional on send_mode being direct. Format: array of selected option values.string[]emailNo
to_emailRecipient email address. Conditional on send_mode being direct.stringnullYes
subjectSubject or Title of the notification. See node documentation for details on template variables.string{{ source_name }} : {{ event_name }}Yes
bodyBody of the notification. See node documentation for details on template variables.string{{ event_description }}No
include_snapshotAttach a snapshot from the trigger time.booltrueNo
snapshot_object_typesSelect the object types to include in the snapshot. If not specified, entire frame will be sent. Conditional on include_snapshot being true.model-labelsnullNo
media_nodeAttaches media from the specified node with the email. Specifying a Save Clip node will include the most recent clip from the node with the email. The node must be configured to store clips locally.stringnullNo
livestream_nodeEnables including the live stream URL from the named WebRTC node with the email using livestream_url template variable. Accepted node type: stream_webrtc_out.stringnullNo
use_custom_smtp_serverUse your own SMTP Server? Conditional on send_mode being direct.boolfalseNo
serverSMTP server IP address. Conditional on use_custom_smtp_server being true.stringnullYes
portPort of the SMTP Server. Conditional on use_custom_smtp_server being true.numbernullYes
use_tlsIf enabled, a TLS socket will be used for the SMTP session. Your SMTP server must support the STARTTLS SMTP extension to use this. Conditional on use_custom_smtp_server being true.booltrueNo
from_email"From" email address. Conditional on use_custom_smtp_server being true.stringnullYes
userOptional. Leave this and SMTP password empty to send without SMTP AUTH. Conditional on use_custom_smtp_server being true.stringnullNo
passwordYour SMTP server must support the AUTH SMTP connection to use this. Conditional on use_custom_smtp_server being true.stringnullNo
intervalMin. time between consecutive notifications. Unit: seconds.float10No
max_media_wait_timeMax. time to wait until a media clip is available. Unit: seconds.float10No
media_extensionsComma separated list of media extensions to attach when a Media node is specified. For example, 'mp4,jpg,png,gif'.stringmp4No
use_camera_as_sourceEnable to report a linked camera as the source for camera streams and Universal bridge clips.boolfalseNo

Send Modes

  • Default — Notifications are emitted to Lumeo's managed notification service. Recipients and delivery channels (email and/or push) are configured in your Lumeo account, so the recipient email and SMTP server options are hidden. Snapshots and clips are uploaded to Lumeo Files and attached by reference: when both a clip and a snapshot are present, the snapshot is set as the clip's thumbnail and only the clip is attached; otherwise the snapshot is attached on its own. This is the recommended mode for new nodes.
  • Direct — The node delivers notifications itself: it sends email (via Lumeo's hosted relay or your own SMTP server) and/or push notifications based on the notification_type selection, to the recipients listed in to_email.

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
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.
event_nameName of event(s) contained in this frame.
event_descriptionDescription of events contained in this frame.

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?