frangoteam / FUXA

Web-based Process Visualization (SCADA/HMI/Dashboard) software
https://frangoteam.org
MIT License
2.87k stars 835 forks source link

[FEATURE] SMTP Mailing for Alarms #1475

Closed Kiruthick-Roxx closed 1 day ago

Kiruthick-Roxx commented 2 weeks ago

Describe the feature It would be good feature to add SMTP mailing for individual alarms in the action configuration panel, so that any critical alarms will be immediately notified by mail.

Describe the solution you'd like Screenshot 2024-11-03 085928 In the alarms action property panel, one more option like SMTP can be added and if possible additional settings to send the mail for the alarms can also be added. Upon selecting that, a mail should be sent to the receiver based on the configuration.

Additional context It would be really helpful in the industry as the responsible person will be immediately notified rather than someone noticing the alarm and then taking action. It would also be good if I'm able to store historical alarms to Influxdb..

henjoe commented 2 weeks ago

That's what notifications do. image

Kiruthick-Roxx commented 2 weeks ago

But that doesn't work for individual alarms right? It only gets the alarm type and then sends mail if any of the Alarm of type (for example: high high) is triggered. Correct me if I'm wrong.

niektuytel commented 2 weeks ago

This can been done easily from outside this project.

Kiruthick-Roxx commented 2 weeks ago

Can you please share some idea?

unocelli commented 2 weeks ago

I suppose that a good compromise could be to add $sendMail function to de script

mauroalexandre commented 2 weeks ago

I began by proposing an option to select categories in the alarm through a 'mat-chip-grid' component, allowing for the filtering of alarms by these categories on the notification screen, but maybe use user groups is better.

However, my co-worker brought up a broader topic that warrants further discussion: the introduction of dynamic user groups, which would replace the existing UserGroups.Groups.

@Kiruthick-Roxx @unocelli

Here is the link for discussion.

unocelli commented 5 days ago

I'm working on this issue $sendMessage

Kiruthick-Roxx commented 1 day ago

Thanks