Node-Red Setup and Admin Notes

Note: Working Notes Node red uses a settings file called settings.js located in in the user .node-re folder in their home directory. You can create your own settings file and customise it either by copying the existing file or using the file available from Github here. On Linux the settings.js file is copied from the /usr/lib/node-modules/node-red/ folder  to your .node-red folder in your home directory when you start node-red and no settings.js file is present. On windows if no settings.js file is present in the home folder then the node-red start process stops with an error. To use your own

Continue reading

Storing Data in Node-Red Variables

Node-red nodes pass the msg object between nodes. However this object is replaced by the next msg object. So how do you store data between node calls? Node-Red provides three mechanisms: The context object -stores data for a node The Flow object – stores data for a flow The global object -stores data for the canvas

Continue reading