mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-11 23:52:00 +01:00
bbf1a7fd29
Signed-off-by: Kai Kreuzer <kai@openhab.org>
17 lines
945 B
Markdown
17 lines
945 B
Markdown
# MongoDB Persistence
|
|
|
|
This service allows you to persist state updates using the MongoDB database.
|
|
It supports writing information to a MongoDB document store, as well as querying from it.
|
|
|
|
## Configuration
|
|
|
|
This service can be configured in the file `services/mongodb.cfg`.
|
|
|
|
| Property | Default | Required | Description |
|
|
| ---------- | ------- | :------: | ---------------------------------------------------------------------------- |
|
|
| url | | Yes | connection URL to address MongoDB. For example, `mongodb://localhost:27017` |
|
|
| database | | Yes | database name |
|
|
| collection | | Yes | collection name |
|
|
|
|
All item and event related configuration is done in the file `persistence/mongodb.persist`.
|