Update Whatsapp instance configuration to use a validation text box and set default instance value

This commit is contained in:
jhartworks
2025-10-15 14:50:19 +02:00
parent adc6451c72
commit 5b64c4705f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
"caption": "Whatsapp-Setup", "caption": "Whatsapp-Setup",
"items": [ "items": [
{ "type": "CheckBox", "name": "SendWhatsapp", "caption": "Send Whatsapp" }, { "type": "CheckBox", "name": "SendWhatsapp", "caption": "Send Whatsapp" },
{ "type": "SelectInstance", "name": "WhatappInst", "caption": "Whatsapp Insance" }, { "type": "ValidationTextBox", "name": "WhatappInst", "caption": "Whatsapp Insance" },
{ "type": "ValidationTextBox", "name": "WhatsappNumbers", "caption": "Whatsapp-Numbers" } { "type": "ValidationTextBox", "name": "WhatsappNumbers", "caption": "Whatsapp-Numbers" }
] ]
}, },
+1 -1
View File
@@ -21,7 +21,7 @@ class MonitoringServer extends IPSModule {
$this->RegisterPropertyBoolean("SendNotification","false"); $this->RegisterPropertyBoolean("SendNotification","false");
$this->RegisterPropertyBoolean("SendWhatsapp",false); $this->RegisterPropertyBoolean("SendWhatsapp",false);
$this->RegisterPropertyInteger("WhatappInst", 0); $this->RegisterPropertyInteger("WhatappInst","DdiBL06tEUa76w7NNCsW9y2s6UkUmrpxZcR8CvTNWMX5z4leyjqI1go2wpatYhCz");
$this->RegisterPropertyString("WhatsappNumbers", "0159123456789,0157987456123"); $this->RegisterPropertyString("WhatsappNumbers", "0159123456789,0157987456123");
$this->RegisterPropertyBoolean("SendMail",false); $this->RegisterPropertyBoolean("SendMail",false);