use same alarm signal "2 or more strings are broken" for Salimax and Salidom
This commit is contained in:
parent
10b7c7b267
commit
dfc779a360
|
@ -125,11 +125,11 @@ public static class RabbitMqManager
|
|||
Console.WriteLine("Add an alarm for installation "+installationId);
|
||||
|
||||
// Send replace battery email to support team if this alarm is "NeedToReplaceBattery"
|
||||
if (alarm.Description == "NeedToReplaceBattery" || alarm.Description == "2 or more string are disabled")
|
||||
if (alarm.Description == "2 or more string are disabled")
|
||||
{
|
||||
Console.WriteLine("Send replace battery email to the support team for installation "+installationId);
|
||||
string recipient = "support@innov.energy";
|
||||
string subject = "Battery Alarm: 2 or more strings broken";
|
||||
string subject = $"Battery Alarm from {installation.InstallationName}: 2 or more strings broken";
|
||||
string text = $"Dear InnovEnergy Support Team,\n" +
|
||||
$"\n"+
|
||||
$"Installation Name: {installation.InstallationName}\n"+
|
||||
|
|
Loading…
Reference in New Issue