@@ -16,11 +16,6 @@ var config = require('./config.json');
1616app . use ( express . logger ( ) ) ;
1717app . use ( express . compress ( ) ) ;
1818
19- app . get ( '/stats' , function ( req , res , next ) {
20- console . log ( 'This process is pid ' + process . pid + " with an uptime of " + process . uptime ( ) ) ;
21- console . log ( 'Running on ' + process . platform + ' (' + process . arch + ')' ) ;
22- } ) ;
23-
2419app . use ( express . static ( __dirname + '/pages' ) ) ;
2520app . use ( express . static ( __dirname + '/pages/js' ) ) ;
2621
@@ -31,13 +26,11 @@ app.use(function(req, res, next){
3126
3227
3328
34-
3529server . listen ( 8500 ) ;
3630console . log ( 'listening on port 8500' ) ;
3731
3832
3933
40-
4134io . of ( '/sensors' ) . on ( 'connection' , function ( socket ) {
4235 // subscribe to MQTT
4336 var mqtt = require ( 'mqtt' ) ;
@@ -84,7 +77,7 @@ io.of('/mqttstats').on('connection', function (socket) {
8477
8578 mqttclient . on ( 'connect' , function ( ) {
8679 mqttclient . subscribe ( '$SYS/#' ) ;
87- // console.log('subscribing to everything on ' + config.mqtt.host + '(' + config.mqtt.port + ')');
80+ // console.log('subscribing to $SYS on ' + config.mqtt.host + '(' + config.mqtt.port + ')');
8881
8982 mqttclient . on ( 'message' , function ( topic , message ) {
9083 // console.log('emitting topic: ' + topic + ' payload: ' + message);
0 commit comments