Update main.js
This commit is contained in:
parent
f7096744c2
commit
f6d8d162d2
4
main.js
4
main.js
@ -14,7 +14,7 @@
|
|||||||
const utils = require(__dirname + '/lib/utils'); // Get common adapter utils
|
const utils = require(__dirname + '/lib/utils'); // Get common adapter utils
|
||||||
const Pushover = require('pushover-notifications');
|
const Pushover = require('pushover-notifications');
|
||||||
|
|
||||||
const Request = require('request');
|
const request = require('request');
|
||||||
|
|
||||||
const adapter = new utils.Adapter('pushover');
|
const adapter = new utils.Adapter('pushover');
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ function createObject() {
|
|||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
// Adapter is started only if some one writes into "system.adapter.pushover.X.messagebox" new value
|
// Adapter is started only if some one writes into "system.adapter.pushover.X.messagebox" new value
|
||||||
createObject();
|
//createObject();
|
||||||
processMessages();
|
processMessages();
|
||||||
stop();
|
stop();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user