Refactor Multialarmer module: enhance email and WhatsApp notification features, add configuration options for API keys and recipient management
This commit is contained in:
1 parent
e100b8425e
commit
8c2f8244e6
2 files changed
+347
-228
No files matched your search
+32
-25
@@ -1,25 +1,32 @@
|
||||
{
|
||||
"elements":
|
||||
[
|
||||
|
||||
{ "type": "SelectInstance", "name": "VisuId", "caption": "Kachelvisu ID" },
|
||||
{ "type": "SelectInstance", "name": "MailerId", "caption": "Email SMTP ID" },
|
||||
{ "type": "ValidationTextBox", "name": "MailAddresses", "caption": "E-Mail Adresses (Commaseperated)" , "width": "40%"},
|
||||
{ "type": "SelectVariable", "name": "ValueId01", "validVariableTypes": [0],"caption": "Überwachter Wert 1" },
|
||||
{ "type": "SelectVariable", "name": "ValueId02", "validVariableTypes": [0],"caption": "Überwachter Wert 2" },
|
||||
{ "type": "SelectVariable", "name": "ValueId03", "validVariableTypes": [0],"caption": "Überwachter Wert 3" },
|
||||
{ "type": "SelectVariable", "name": "ValueId04", "validVariableTypes": [0],"caption": "Überwachter Wert 4" }
|
||||
|
||||
],
|
||||
"actions":
|
||||
[
|
||||
{ "type": "Button", "label": "Set Init Values", "onClick": "VTMA_setInitValues($id);" },
|
||||
{ "type": "Button", "label": "Send a Mail", "onClick": "VTMA_sendTestmail($id);" }
|
||||
|
||||
|
||||
],
|
||||
"status":
|
||||
[
|
||||
|
||||
]
|
||||
}
|
||||
{
|
||||
"elements": [
|
||||
{ "type": "SelectInstance", "name": "VisuId", "caption": "Kachelvisu ID" },
|
||||
{
|
||||
"type": "ExpansionPanel",
|
||||
"caption": "E-Mail",
|
||||
"items": [
|
||||
{ "type": "CheckBox", "name": "SendInternalMail", "caption": "Internen SMTP-Mailversand aktivieren" },
|
||||
{ "type": "SelectInstance", "name": "MailerId", "caption": "E-Mail SMTP ID" },
|
||||
{ "type": "CheckBox", "name": "SendMailApi", "caption": "Mail-API aktivieren" },
|
||||
{ "type": "PasswordTextBox", "name": "MailApiKey", "caption": "Mail-API-Key" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "ExpansionPanel",
|
||||
"caption": "WhatsApp",
|
||||
"items": [
|
||||
{ "type": "CheckBox", "name": "SendWhatsApp", "caption": "WhatsApp-API aktivieren" },
|
||||
{ "type": "PasswordTextBox", "name": "WhatsAppApiKey", "caption": "WhatsApp-API-Key" }
|
||||
]
|
||||
},
|
||||
{ "type": "SelectVariable", "name": "ValueId01", "validVariableTypes": [0], "caption": "Überwachter Wert 1" },
|
||||
{ "type": "SelectVariable", "name": "ValueId02", "validVariableTypes": [0], "caption": "Überwachter Wert 2" },
|
||||
{ "type": "SelectVariable", "name": "ValueId03", "validVariableTypes": [0], "caption": "Überwachter Wert 3" },
|
||||
{ "type": "SelectVariable", "name": "ValueId04", "validVariableTypes": [0], "caption": "Überwachter Wert 4" }
|
||||
],
|
||||
"actions": [
|
||||
{ "type": "Button", "label": "Initialwerte setzen", "onClick": "VTMA_setInitValues($id);" },
|
||||
{ "type": "Button", "label": "Testbenachrichtigung senden", "onClick": "VTMA_sendTestNotification($id);" }
|
||||
],
|
||||
"status": []
|
||||
}
|
||||
Reference in new issue
Block a user