Skip to main content

Receiving events by Email

info

Supported since version 0.6.0

Starting with version 0.6.0, Yucca can now receive events from cameras via email.

How it works

Most modern IP cameras can detect motion in the frame and send an email notification about it. In our case Yucca acts as an SMTP server, listening on a dedicated port. When a stream is added, it's assigned a unique email address. Then, in the camera's settings, Yucca is specified as the SMTP server, and the unique assigned address is used as both the sender and destination address. When the camera detects motion in the frame, it sends a message about it to the server. The server, in turn, identifies which stream the notification belongs to and records the time it arrived.

how_work

Based on this data, an event is created, which is then displayed on the timeline in the player's progress bar.

event_labels

The duration of an event is determined by the event_window_duration parameter

How to configure it

For this to work, you need to enable the SMTP server in the settings; it's already enabled by default and listens on port 1025. To prevent unauthorized connections, set a username and password; by default they're not set.

Next, in the settings of an already added camera you can see the details that will come in handy later when configuring the cameras themselves.

yucca_01 yucca_02

The Server field can be overridden using the domain flag. By default, the first IP address on the interface with the default route is shown.