How to use the node-red.settings function in node-red

To help you get started, we’ve selected a few node-red examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Streampunk / dynamorse-deprecated / server.js View on Github external
logger.on('log', function (x) { if (x.msg === 'Starting flows') {
  RED.settings.functionGlobalContext.updated = false;
  // logger.removeAllListeners();
  nodeAPI.putResource(device).catch(RED.log.error);
  nodeAPI.putResource(pipelines).then(function () {
    RED.log.info('Devices and self registred with ledger.');

    RED.nodes.updateFlow('global', {
      configs: [ {
        id: deviceNodeID,
        type: 'device',
        nmos_id: device.id,
        version: device.version,
        nmos_label: device.label,
        nmos_type: device.type,
        node_id: device.node_id,
        node_ref: selfNodeID
      }, {
github Streampunk / dynamorse-deprecated / server.js View on Github external
function () {
      RED.settings.functionGlobalContext.updated = true;
      RED.log.info('Dynamorse tab checked and created if required.')
    },
    RED.log.error