How would I go about running this inside node-red?
https://www.npmjs.com/package/nodbus
I have tried Installing the npm node that exposed npm modules as node-red nodes,
http://flows.nodered.org/node/node-red-contrib-npm
And can't get nodbus to work, can someone throw some light on this?
Thanks
The global context can also be pre-populated with objects when Node-RED starts. This is defined in the main settings.js file under the functionGlobalContext property.
For example, the built-in os module can be made available to, all functions:
functionGlobalContext: {
osModule:require('os')
}
at which point, the module can be referenced within a function as global.get('osModule').