Making Consolidated Messages from the alarm pipeline look pr

The the consolidate message generated does not look that nice. Is there any way to make the output an html e-mail or at least insert a carriage return between the alarms?

This:

3 alarm events have occurred: Alarm “Deviation Alarm” at “Primary Extruder - Zone 2” transitioned to Active at 11:17:11 Alarm “Deviation Alarm” at “Primary Extruder - Zone 4” transitioned to Active at 11:17:11 Alarm “Deviation Alarm” at “Primary Extruder - Zone 6” transitioned to Active at 11:17:11

to this:

3 alarm events have occurred:
Alarm “Deviation Alarm” at “Primary Extruder - Zone 2” transitioned to Active at 11:17:11
Alarm “Deviation Alarm” at “Primary Extruder - Zone 4” transitioned to Active at 11:17:11
Alarm “Deviation Alarm” at “Primary Extruder - Zone 6” transitioned to Active at 11:17:11

1 Like

Using this:

[code]{alarmEvents.Count} alarm events have occurred:
{{

  • “{name}” on “{displayPath}” went into alarm at {eventTime|hh:mm:ss a}}}[/code]

I got this:

[code]7 alarm events have occurred:

  • “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 1” went into alarm at 01:58:23 PM

  • “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 2” went into alarm at 01:58:23 PM

  • “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 3” went into alarm at 01:58:23 PM

  • “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 4” went into alarm at 01:58:23 PM

  • “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 5” went into alarm at 01:58:23 PM

  • “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 6” went into alarm at 01:58:23 PM

  • “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 7” went into alarm at 01:58:23 PM
    [/code]
    I can not find any documentation on the format of the consolidated e-mail string. Can someone point me to it?

1 Like

I can’t see any either. Kevin Herron said in this post that the documentation was being completely written for 7.8. Hopefully this will be included!

You have to use html tags:

Modifying the default consolidated message would look like this:

<html>{alarmEvents.Count} alarm events have occured:<br>
{{Alarm “{label}” transitioned to {eventState} at {eventTime|hh:mm:ss}<br>}}


This gets you the following:

3 alarm events have occurred:
Alarm “Label for Alarm Test 1 Goes here” transitioned to Active at 12:12:39
Alarm “Label for Alarm Test 2 Goes here” transitioned to Active at 12:12:39
Alarm “Label for Alarm Test 3 Goes here” transitioned to Active at 12:12:39

2 Likes

This thread helped me with our SMS format for consolidation and wanted to share what we did.

  • Note - we are using the Twilio Module from IA. Not sure if there'd be a difference using other sms modules.

Expression Block

{alarmEvents.Count} alarm events have occurred.
	 
{{
Alarm - {eventTime|MMM dd, YYYY hh:mm:ss aa}
{displayPath}
}}

image

2 Likes