| 192 | [[CollapsibleStart(Enable Logging to DataBase)]] |
| 193 | The configuration file WEBSERVER/server/config.js located on srv3-lg1.sb1.cosmos-lab.org can be modified to enable logging to the database as follows: |
| 194 | |
| 195 | {{{#!td align=center |
| 196 | config.js |
| 197 | }}} |
| 198 | |--------------- |
| 199 | {{{#!td |
| 200 | {{{#!shell |
| 201 | //MongoDB Database parameters |
| 202 | dbAvailable: true, |
| 203 | dbStore: true, |
| 204 | dbCollectionName: "nr_guidata", //This is not a fixed value and can be changed |
| 205 | dbHost: "127.0.0.1", //Address of databases server |
| 206 | dbPort: 27017, |
| 207 | //End Database parameters |
| 208 | |
| 209 | }}} |
| 210 | }}} |
| 211 | |--------------- |
| 212 | |
| 213 | Once the configuration file has been saved the server will automatically restart and all data streamed to the GUI will be saved in the database. The Mongo client can be used to browse or extract data. |
| 214 | The data model in use can be found in the following file: |
| 215 | WEBSERVER/server/backend/models/tlvDataItem.js |
| 216 | [[CollapsibleEnd]] |
| 217 | |