16 lines
433 B
Plaintext
16 lines
433 B
Plaintext
db = connect( 'mongodb://localhost/allsensors')
|
|
|
|
let options = {
|
|
timeseries: {
|
|
timeField: "datetime",
|
|
metaField: "sensorid",
|
|
}
|
|
}
|
|
|
|
db.createCollection("pm_sensors", options)
|
|
db.createCollection("thp_sensors", options)
|
|
db.createCollection("noise_sensors", options)
|
|
db.createCollection("radioactivity_sensors", options)
|
|
db.createCollection("gps_sensors", options)
|
|
db.createCollection("unknown_sensors", options)
|