Handle contactors separately in daily_report
This commit is contained in:
parent
7093d765ec
commit
c5c5b21f47
10 changed files with 427 additions and 242 deletions
|
|
@ -2,7 +2,7 @@ exports.id = 'slack_filter';
|
|||
exports.title = 'Slack Filter';
|
||||
exports.group = 'Citysys';
|
||||
exports.color = '#30E193';
|
||||
exports.input = 1;
|
||||
exports.input = 2;
|
||||
exports.output = 1;
|
||||
exports.author = 'Jakub Klena';
|
||||
exports.icon = 'plug';
|
||||
|
|
@ -33,7 +33,7 @@ exports.install = function(instance) {
|
|||
instance["savedSlackMessages"] = [];
|
||||
var timer = null;
|
||||
|
||||
instance.on('data', function(response) {
|
||||
instance.on('0', function(response) {
|
||||
if (!running) return;
|
||||
let value = response.data;
|
||||
if (typeof value !== 'object') return;
|
||||
|
|
@ -181,6 +181,8 @@ exports.install = function(instance) {
|
|||
};
|
||||
|
||||
instance.on('options', instance.reconfigure);
|
||||
setTimeout(instance.reconfigure, 10000);
|
||||
|
||||
instance.on("1", _ => {
|
||||
instance.reconfigure();
|
||||
})
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue