add schema for SiSi module

This commit is contained in:
Julian Pawlowski 2019-09-06 12:45:08 +02:00
parent 4143ba7374
commit 96d5b8c25b

View File

@ -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' => { 'TelegramBot' => {
'Normal' => 'set %DEVICE% %TelegramBot_MTYPE% %RECIPIENT% %MSG%', 'Normal' => 'set %DEVICE% %TelegramBot_MTYPE% %RECIPIENT% %MSG%',
'High' => '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%\'', 'set %DEVICE% msg title=\'%TITLE%\' lifetime=%EXPIRE% priority=%LaMetric2_PRIORITY% sound=%LaMetric2_SOUND% repeat=%LaMetric2_REPEAT% cycles=%LaMetric2_CYCLES% message=\'%MSG%\'',
'defaultValues' => { 'defaultValues' => {
'Normal' => { 'Normal' => {
'EXPIRE' => '120', 'EXPIRE' => '120',
'LaMetric2_PRIORITY' => 'warning', 'LaMetric2_PRIORITY' => 'warning',
'LaMetric2_SOUND' => 'notification', 'LaMetric2_SOUND' => 'notification',
'LaMetric2_REPEAT' => '1', 'LaMetric2_REPEAT' => '1',
'LaMetric2_CYCLES' => '1', 'LaMetric2_CYCLES' => '1',
}, },
'High' => { 'High' => {
'EXPIRE' => '120', 'EXPIRE' => '120',
'LaMetric2_PRIORITY' => 'critical', 'LaMetric2_PRIORITY' => 'critical',
'LaMetric2_SOUND' => 'alarm13', 'LaMetric2_SOUND' => 'alarm13',
'LaMetric2_REPEAT' => '3', 'LaMetric2_REPEAT' => '3',
'LaMetric2_CYCLES' => '2', 'LaMetric2_CYCLES' => '2',
}, },
'Low' => { 'Low' => {
'EXPIRE' => '120', 'EXPIRE' => '120',
'LaMetric2_PRIORITY' => 'info', 'LaMetric2_PRIORITY' => 'info',
'LaMetric2_SOUND' => 'positive5', 'LaMetric2_SOUND' => 'positive5',
'LaMetric2_REPEAT' => '1', 'LaMetric2_REPEAT' => '1',