None

MongoDB with OpenHAB

home automation

This part describes how I configured my OpenHAB instance to use MongoDB as persistence backend. For configuration of MongoDB on my FreeNAS machine, see my previous post.

  1. Connect to the server and create openhab database with sensors collection (or any names you choose – just make sure you reflect your naming in further steps. 575a22b99fba4b8c1c28bbd793a1cb71.png
  2. Install mongodb bundle (from snapshot most likely), Add openhab persistence config:
    ################ MongoDB Persistence Service #######################
    # the database url
    mongodb:url=mongodb://192.168.2.118:27017
    
    # the database name
    mongodb:database=openhab
    
    # the collection name
    mongodb:collection=sensors
    Note the mongodb:// in the address – needs to be there!
  3. That’s it! After restart and adding persistence info, it should all work and you should have a nice place to store all your data

 

blog comments powered by Disqus