diff --git a/databases/mongo.js b/databases/mongo.js index b3aed1a..b41f81e 100644 --- a/databases/mongo.js +++ b/databases/mongo.js @@ -186,7 +186,7 @@ export const fetchActData = async (opts) => { LA_minx: '$values.noise_LA_min', LA_max: '$values.LA_max', LAeq: '$values.LAeq', - E10tel_eq: '$values.E10tel_eq' } + } }, // {$project: { // datetime: {$dateToString: {format: '%Y-%m-%dT%H:%M:%SZ', date: '$datetime'}}, @@ -202,24 +202,6 @@ export const fetchActData = async (opts) => { } return ret } -/* -Try to connect to mongodb://rexfue:s25BMmW2gg@192.168.51.22:27017 -Try to connect to mongodb://rexfue:s25BMmW2gg@192.168.51.22:27017 -*/ - - - - -/* - let docs = await collection.find( - { datetime: - { $gte: start.toDate(), $lt: end.toDate() } - }, - { projection: - {_id:0, E_eq:0, E_mx:0, E_mi:0, E10tel_mx:0, E10tel_mi:0}, sort: {datetime: sort} - }, - ).toArray(); -*/ export const fetchgeigerAVGData = async (opts) => { let docs = []