Skip to content

Commit f558f8b

Browse files
author
Steve
committed
Comment out mongodb saving
1 parent 5052896 commit f558f8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

homemon-stats/homemon-stats.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ mqttclient.on("connect", function() {
183183
});
184184

185185

186-
var MongoClient = require ("mongodb").MongoClient;
186+
// var MongoClient = require ("mongodb").MongoClient;
187187

188188

189189

@@ -204,9 +204,9 @@ mqttclient2.on("connect", function() {
204204

205205
mqttclient2.publish("jsonsensors", JSON.stringify(jsonMessage));
206206

207-
MongoClient.connect (config.mongo.host, function (err, db) {
208-
db.collection ("homedata").insertOne (jsonMessage);
209-
});
207+
// MongoClient.connect (config.mongo.host, function (err, db) {
208+
// db.collection ("homedata").insertOne (jsonMessage);
209+
// });
210210
});
211211
});
212212

0 commit comments

Comments
 (0)