Disabaled wrong Notification System
This commit is contained in:
parent
78e823516c
commit
3b5fd08cc4
|
@ -1,8 +1,8 @@
|
||||||
var express = require('express'),
|
var express = require('express'),
|
||||||
app = express(),
|
app = express(),
|
||||||
server = require('http').createServer(app),
|
server = require('http').createServer(app),
|
||||||
io = require('socket.io').listen(server),
|
io = require('socket.io').listen(server)/*,*/;
|
||||||
notifier = require('node-notifier');
|
//notifier = require('node-notifier');
|
||||||
var flash = require('connect-flash');
|
var flash = require('connect-flash');
|
||||||
var moment = require('moment');
|
var moment = require('moment');
|
||||||
var SnmpMac = require("./snmp-mac");
|
var SnmpMac = require("./snmp-mac");
|
||||||
|
@ -59,7 +59,7 @@ var usercountanswer = {at: 0, current_value: 0, datapoints: [
|
||||||
var snmpMac = new SnmpMac("juni.ctdo.de", "ctdo23");
|
var snmpMac = new SnmpMac("juni.ctdo.de", "ctdo23");
|
||||||
var ippoll = new IpPoll("switch2.raum.ctdo.de", "195.160.169.30-120");
|
var ippoll = new IpPoll("switch2.raum.ctdo.de", "195.160.169.30-120");
|
||||||
var flukso = new Flukso("flukso.raum.ctdo.de", "/sensor/cf00e0b22230f4a8870af58f2b8719dd");
|
var flukso = new Flukso("flukso.raum.ctdo.de", "/sensor/cf00e0b22230f4a8870af58f2b8719dd");
|
||||||
var notification = new Notification();
|
//var notification = new Notification();
|
||||||
|
|
||||||
snmpMac.on('done', function (res) {
|
snmpMac.on('done', function (res) {
|
||||||
simpleanswer.names = res;
|
simpleanswer.names = res;
|
||||||
|
@ -93,7 +93,7 @@ io.configure(function () {
|
||||||
function work() {
|
function work() {
|
||||||
snmpMac.poll();
|
snmpMac.poll();
|
||||||
ippoll.pollCount();
|
ippoll.pollCount();
|
||||||
notification.notificate(simpleanswer.state);
|
//notification.notificate(simpleanswer.state);
|
||||||
}
|
}
|
||||||
|
|
||||||
setInterval(work, 60000);
|
setInterval(work, 60000);
|
||||||
|
|
Loading…
Reference in New Issue