openhab-addons/bundles/org.openhab.persistence.mongodb
J-N-K 5f8214f08a
Adapt to core changes (addon.xml) (#13289)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-15 20:31:42 +01:00
..
src/main Adapt to core changes (addon.xml) (#13289) 2023-01-15 20:31:42 +01:00
NOTICE
pom.xml fix spotless after release (#14014) 2022-12-19 15:22:17 +01:00
README.md

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 set collection to "" if it shall generate a collection per item

If you have a username and password it looks like this: url = mongodb://[username]:[password]@[localhost]:27017/[database] The database is required: https://mongodb.github.io/mongo-java-driver/3.9/javadoc/com/mongodb/MongoClientURI.html

All item and event related configuration is done in the file persistence/mongodb.persist.