Skip to content

Alarm notifications

The Scadora server reports alarms by email and Telegram. A recipient sees new alarms and, if wanted, their return to normal. An alarm can be acknowledged from Telegram with a button under the message.

Notifications section in the editor

  1. Open Notifications in the project tree.
  2. Email: enter the SMTP server, port and encryption (STARTTLS on 587, SSL on 465 or none on 25), login, password and sender address.
  3. Telegram: create a bot with @BotFather and paste its token. Send /start to the bot while the server is running: it replies with the chat number. For a group, add the bot to the group.
  4. Add recipients and press Test message: it is sent from the engineer’s computer with the same settings.
  5. Save the project. The server applies the settings without a restart.

The mail password and bot token are stored in the project file notifications.json. To keep them out of git, enter %env:NAME%: the server reads the value from a Windows environment variable.

Column Meaning
Email, Telegram chat Where to send; both are allowed. Several email addresses are comma-separated
Priority The lowest priority to report: critical only, high and above…
Areas Alarm areas, comma-separated; empty means all
Days, Hours Duty schedule: mon-fri, sat,sun; 08:00-17:00, at night 20:00-08:00. Empty means always
After, min Escalation: the message goes out only if the alarm was not acknowledged within this time
On normal Also report the return to normal
Acknowledges May acknowledge from Telegram

Events within a few seconds (Collect for, s) arrive as one message, so an alarm flood does not turn into a hundred emails. Labels are in the message language; alarm texts stay as in the project.

Under a message there is an Acknowledge button for each new alarm. The acknowledgement goes to the alarm log as Telegram: recipient. The /alarms command lists the active alarms.

Notify.Send("Smith", "Shift closed, output " + Tags("Line.Count").Value);
Notify.Send("*", "Planned stop at 14:00"); // to all enabled recipients
  • No SMS; for SMS use the carrier’s email-to-SMS gateway.
  • Tested with a test mail server; not yet with a real mail server and Telegram.