From 3b5fd08cc4567877bdfad41f6770824222c4b784 Mon Sep 17 00:00:00 2001 From: Tim Windelschmidt Date: Sun, 6 Sep 2015 18:34:30 +0200 Subject: [PATCH] Disabaled wrong Notification System --- node/statusbot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/statusbot.js b/node/statusbot.js index 89af0b5..917ecf8 100644 --- a/node/statusbot.js +++ b/node/statusbot.js @@ -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);