From 96d5b8c25b4986efad9948c249296a522f6443df Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Fri, 6 Sep 2019 12:45:08 +0200 Subject: [PATCH] add schema for SiSi module --- msgSchema.pm | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/msgSchema.pm b/msgSchema.pm index 7276fb0..1c236b9 100755 --- a/msgSchema.pm +++ b/msgSchema.pm @@ -266,6 +266,26 @@ my $db = { }, }, + 'SiSi' => { + 'Normal' => 'set %DEVICE% %SiSi_MTYPE% @%RECIPIENT% %MSG%', + 'High' => 'set %DEVICE% %SiSi_MTYPE% @%RECIPIENT% %MSG%', + 'Low' => 'set %DEVICE% %SiSi_MTYPE% @%RECIPIENT% %MSG%', + 'defaultValues' => { + 'Normal' => { + 'RECIPIENT' => '', + 'SiSi_MTYPE' => 'message', + }, + 'High' => { + 'RECIPIENT' => '', + 'SiSi_MTYPE' => 'message', + }, + 'Low' => { + 'RECIPIENT' => '', + 'SiSi_MTYPE' => 'message', + }, + }, + }, + 'TelegramBot' => { 'Normal' => 'set %DEVICE% %TelegramBot_MTYPE% %RECIPIENT% %MSG%', 'High' => 'set %DEVICE% %TelegramBot_MTYPE% %RECIPIENT% %MSG%', @@ -392,21 +412,21 @@ my $db = { 'set %DEVICE% msg title=\'%TITLE%\' lifetime=%EXPIRE% priority=%LaMetric2_PRIORITY% sound=%LaMetric2_SOUND% repeat=%LaMetric2_REPEAT% cycles=%LaMetric2_CYCLES% message=\'%MSG%\'', 'defaultValues' => { 'Normal' => { - 'EXPIRE' => '120', + 'EXPIRE' => '120', 'LaMetric2_PRIORITY' => 'warning', 'LaMetric2_SOUND' => 'notification', 'LaMetric2_REPEAT' => '1', 'LaMetric2_CYCLES' => '1', }, 'High' => { - 'EXPIRE' => '120', + 'EXPIRE' => '120', 'LaMetric2_PRIORITY' => 'critical', 'LaMetric2_SOUND' => 'alarm13', 'LaMetric2_REPEAT' => '3', 'LaMetric2_CYCLES' => '2', }, 'Low' => { - 'EXPIRE' => '120', + 'EXPIRE' => '120', 'LaMetric2_PRIORITY' => 'info', 'LaMetric2_SOUND' => 'positive5', 'LaMetric2_REPEAT' => '1',