Skip to content

ChrisRahme/node-red-context-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Context for Node-RED

Install

  1. Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install git+https://github.com/ChrisRahme/node-red-context-mongodb
  2. Add a configuration in settings.js under contextStorage:

    contextStorage: {
        // ...
        mongodb: {
            module: require('node-red-context-redis'),
            config: {
                // see below options
            }
        }
    }
  3. Restart Node-RED

Options

These are the available options under config and their default values:

config: {
    host:     '127.0.0.1' // hostname or IP address of the MongoDB server
    port:     '27017'     // port of the MongoDB server
    database: 'context'   // name of the database
    username: null        // username for authentication
    password: null        // password for authentication
    options:  null        // additional options for the driver as URL string
}

About

[WIP] MongoDB context for Node-RED

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published