Disabaled wrong Notification System

This commit is contained in:
Tim Windelschmidt 2015-09-06 18:34:30 +02:00
parent 78e823516c
commit 3b5fd08cc4
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
var express = require('express'),
app = express(),
server = require('http').createServer(app),
io = require('socket.io').listen(server),
notifier = require('node-notifier');
io = require('socket.io').listen(server)/*,*/;
//notifier = require('node-notifier');
var flash = require('connect-flash');
var moment = require('moment');
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 ippoll = new IpPoll("switch2.raum.ctdo.de", "195.160.169.30-120");
var flukso = new Flukso("flukso.raum.ctdo.de", "/sensor/cf00e0b22230f4a8870af58f2b8719dd");
var notification = new Notification();
//var notification = new Notification();
snmpMac.on('done', function (res) {
simpleanswer.names = res;
@ -93,7 +93,7 @@ io.configure(function () {
function work() {
snmpMac.poll();
ippoll.pollCount();
notification.notificate(simpleanswer.state);
//notification.notificate(simpleanswer.state);
}
setInterval(work, 60000);