{"_id":"node-red-contrib-config","_rev":"17-77e0dad62e33d3fbd04c5d29539571b4","name":"node-red-contrib-config","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"node-red-contrib-config","version":"1.0.0","keywords":["node-red","config"],"author":{"name":"Dean Cording","email":"dean@cording.id.au"},"license":"MIT","_id":"node-red-contrib-config@1.0.0","maintainers":[{"name":"deancording","email":"dean@cording.id.au"}],"homepage":"https://github.com/DeanCording/node-red-contrib-config","bugs":{"url":"https://github.com/DeanCording/node-red-contrib-config/issues"},"dist":{"shasum":"7f8c1f7ea0c44a5749ff43a3701a4d4fac89be5a","tarball":"https://registry.npmjs.org/node-red-contrib-config/-/node-red-contrib-config-1.0.0.tgz","integrity":"sha512-kCC0tBdVhGaPw0DkjvvS3wHfRjychfrcwtr1kvMpyFpttIyqHeo4iZsYVj38w3idtjkmSN9+bXJQxDJ1frWGUw==","signatures":[{"sig":"MEUCIQCpfbYZi6jDWg0kE0ylWtZfCa1d/GEXJLpRgZVmG97v1wIgAJwgnthowqfYWcDKmaEN1DgM51hMl/3ZIaLFPqtU7jE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"7f8c1f7ea0c44a5749ff43a3701a4d4fac89be5a","gitHead":"58cc9445dc20e13daeaab383cbee7e8fe0ef160e","scripts":{},"_npmUser":{"name":"deancording","email":"dean@cording.id.au"},"node-red":{"nodes":{"config":"config.js"}},"repository":{"url":"git+https://github.com/DeanCording/node-red-contrib-config.git","type":"git"},"_npmVersion":"3.5.2","description":"A node-red node to set flow and global context values at start up.","directories":{},"_nodeVersion":"4.2.6","dependencies":{},"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-config-1.0.0.tgz_1468391447417_0.15587739506736398","host":"packages-12-west.internal.npmjs.com"}},"1.0.1":{"name":"node-red-contrib-config","version":"1.0.1","keywords":["node-red","config"],"author":{"name":"Dean Cording","email":"dean@cording.id.au"},"license":"MIT","_id":"node-red-contrib-config@1.0.1","maintainers":[{"name":"deancording","email":"dean@cording.id.au"}],"homepage":"https://github.com/DeanCording/node-red-contrib-config","bugs":{"url":"https://github.com/DeanCording/node-red-contrib-config/issues"},"dist":{"shasum":"d09ce7826d8e2407546e03f34d8747d6c15eb7ab","tarball":"https://registry.npmjs.org/node-red-contrib-config/-/node-red-contrib-config-1.0.1.tgz","integrity":"sha512-m4mCDqv1fMRGyZnJDbJakQ3vu8vItwQ9JCtMygHPVBabeKM2HP31Y13qBgCI4Vr1Jna+3P3JcqvIb/BG8IZgAw==","signatures":[{"sig":"MEQCIAb3yIbE13CfntyB2DlZMzs89hsYc+7G0Mb1DmDcnh01AiBGhQRY7yC85JupSg5WLPnspI9S1CfXP3ONnoar94x1wQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"d09ce7826d8e2407546e03f34d8747d6c15eb7ab","gitHead":"0efdd3cd884d9f881c7762a0eee8262b224df498","scripts":{},"_npmUser":{"name":"deancording","email":"dean@cording.id.au"},"node-red":{"nodes":{"config":"config.js"}},"repository":{"url":"git+https://github.com/DeanCording/node-red-contrib-config.git","type":"git"},"_npmVersion":"3.5.2","description":"A node-red node to set flow and global context values at start up.","directories":{},"_nodeVersion":"4.2.6","dependencies":{},"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-config-1.0.1.tgz_1474027777919_0.07107138587161899","host":"packages-12-west.internal.npmjs.com"}},"1.1.0":{"name":"node-red-contrib-config","version":"1.1.0","keywords":["node-red","config"],"author":{"name":"Dean Cording","email":"dean@cording.id.au"},"license":"MIT","_id":"node-red-contrib-config@1.1.0","maintainers":[{"name":"deancording","email":"dean@cording.id.au"}],"homepage":"https://github.com/DeanCording/node-red-contrib-config","bugs":{"url":"https://github.com/DeanCording/node-red-contrib-config/issues"},"dist":{"shasum":"fcbd9192aacdec358db91e7a220969846e3c6c61","tarball":"https://registry.npmjs.org/node-red-contrib-config/-/node-red-contrib-config-1.1.0.tgz","integrity":"sha512-QZquHBEkbfQumpahf93IRD5pLwgcTgaRuOTNfpFv2E6VmSRTK7fWbntULPOAwZyww+PylzDMDLex5T77dg8huA==","signatures":[{"sig":"MEUCIDgWk1vBJMICG5QJ27Ru1MD+U8bXg5IlrsQd4LW2K5lSAiEAmBqSCP7kmQcABhz87NNDhM44/BlVAqce9zYqi2+BxuI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"fcbd9192aacdec358db91e7a220969846e3c6c61","gitHead":"00b4e18b5bc09ae140e5746acd671d6a9a271bcb","scripts":{},"_npmUser":{"name":"deancording","email":"dean@cording.id.au"},"node-red":{"nodes":{"config":"config.js"}},"repository":{"url":"git+https://github.com/DeanCording/node-red-contrib-config.git","type":"git"},"_npmVersion":"3.10.8","description":"A node-red node to set flow and global context values at start up.","directories":{},"_nodeVersion":"4.7.2","dependencies":{},"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-config-1.1.0.tgz_1499215578558_0.03859628736972809","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"node-red-contrib-config","version":"1.1.1","keywords":["node-red","config"],"author":{"name":"Dean Cording","email":"dean@cording.id.au"},"license":"MIT","_id":"node-red-contrib-config@1.1.1","maintainers":[{"name":"deancording","email":"dean@cording.id.au"}],"homepage":"https://github.com/DeanCording/node-red-contrib-config","bugs":{"url":"https://github.com/DeanCording/node-red-contrib-config/issues"},"dist":{"shasum":"843dd609e76b4f686a0a86f90da21144f5ae13cb","tarball":"https://registry.npmjs.org/node-red-contrib-config/-/node-red-contrib-config-1.1.1.tgz","integrity":"sha512-t+9M3QiOsG1MWKpLBw0kJAYgPRza0q+KX0Iz9cp9YQmya3cGUaRGo2o/Br+nIjVpcVpFdqqDa/jfVCxgXiDG0w==","signatures":[{"sig":"MEYCIQCkZ2Ccb1VvlFEcEXLJen081HED9dechBi5z+GqA7GRfwIhAPKjIQFHg9ocRfLraB2pdkY7ZE/msDbWb+H1BiyxYaRo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"843dd609e76b4f686a0a86f90da21144f5ae13cb","gitHead":"2edf8b90e176b42cf97646386d2ccd6503e9f050","scripts":{},"_npmUser":{"name":"deancording","email":"dean@cording.id.au"},"node-red":{"nodes":{"config":"config.js"}},"repository":{"url":"git+https://github.com/DeanCording/node-red-contrib-config.git","type":"git"},"_npmVersion":"3.5.2","description":"A node-red node to set flow and global context values at start up.","directories":{},"_nodeVersion":"4.7.2","dependencies":{},"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-config-1.1.1.tgz_1499216552526_0.014689311385154724","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"node-red-contrib-config","version":"1.1.2","keywords":["node-red","config"],"author":{"name":"Dean Cording","email":"dean@cording.id.au"},"license":"MIT","_id":"node-red-contrib-config@1.1.2","maintainers":[{"name":"deancording","email":"dean@cording.id.au"}],"homepage":"https://github.com/DeanCording/node-red-contrib-config","bugs":{"url":"https://github.com/DeanCording/node-red-contrib-config/issues"},"dist":{"shasum":"193911220b227415dbf52f717acaa333c7a58129","tarball":"https://registry.npmjs.org/node-red-contrib-config/-/node-red-contrib-config-1.1.2.tgz","integrity":"sha512-eXJFqCnnOCx5H5pQ/v54oXl6Lmo81qdzxomHX/JM6IPTAm9G2g0msIH0BbBh5plEBzyQuYJV7jyR0MDCvQ1c3g==","signatures":[{"sig":"MEUCIQC4pYScOb5sJN6G9RWs58i3G5P5xxMZLao/CMRRDurP3QIgVdxgvgPPUe6WbUFAbtjy3PG6j8BkzqVDcXdO0b0mhMA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"gitHead":"f3a3ecde23ef9bf4c88120a562a9db9281184904","_npmUser":{"name":"deancording","email":"dean@cording.id.au"},"node-red":{"nodes":{"config":"config.js"}},"repository":{"url":"git+https://github.com/DeanCording/node-red-contrib-config.git","type":"git"},"_npmVersion":"5.6.0","description":"A node-red node to set flow and global context values at start up.","directories":{},"_nodeVersion":"8.9.4","dependencies":{},"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-config-1.1.2.tgz_1515310522128_0.025502170668914914","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"node-red-contrib-config","version":"1.1.3","keywords":["node-red","config"],"author":{"name":"Dean Cording","email":"dean@cording.id.au"},"license":"MIT","_id":"node-red-contrib-config@1.1.3","maintainers":[{"name":"deancording","email":"dean@cording.id.au"}],"homepage":"https://github.com/DeanCording/node-red-contrib-config","bugs":{"url":"https://github.com/DeanCording/node-red-contrib-config/issues"},"dist":{"shasum":"0a5fbf458d2da23cb99663aeba8dce97b19fba34","tarball":"https://registry.npmjs.org/node-red-contrib-config/-/node-red-contrib-config-1.1.3.tgz","fileCount":9,"integrity":"sha512-zCPyTNtZQTACu7s4notbhGGcw0hhzOolfIMTWu1/BrvI5BB0SRAkgSz3IISqMMJ5JDXEfZIqzmwzcnTe2227qA==","signatures":[{"sig":"MEUCIQD91Vty63r0vXOwdJYf2gKZ50sr7uIuqXEM4N+zZNA4/wIgK3VFkt9WMDacouTws+soCSuxe35gVCrCUrcSuP8ieN0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezZTTCRA9TVsSAnZWagAAfzUP+QFylMf1LrLSVWYe2C0p\n2VVDJVTIUkF8d+TU6fkpSYXLzKc6NN/Mqpyd4GHGU2OnpvNb98dKNcLLaXxE\nx82R7Il2p9tBz5pzzoGJ6zBm5El/lLS6LSXhdf7r/pZ46KVXfleF/cPq/3oO\n9ge/FSPSbIYveY4+g9mqxbcR6RPCEdXX3kgUJh+7vpwxwbj33FB4DAqmaDe8\n1uCmjUKN/BrDpNDwAAUWOqJWO0JuFL1SkFjgwrHjevdSPEIu/noFClGg436u\nUlgZtSNQP1J/nVmRZULzb6cGB6HQGEeNn90Q9Cc7xbeu9tBJ8jbmABDVNnxn\nvQsr7HPBBPBbBZjcD/J740oNGgFeY4te4Y0Fts2h++XFH+Mjg9LhomSU2KK+\nAeQxyLREsJA8J517TfUaoHa6L7dPWGIURRPfvf8ZTZNv+DuCNltsX1+Sl4aj\nbFcSAaywN+oWsuJfH4YqHOZpowLdh/i9D2Tp7rcZCEb4/m0iUM+MCZ3XXcLq\n5z1k+aN2TrI28fnCumtwyUp6SfN30lu5JDiFkxM+5zpW+FgIjYzqQ7uDasAv\n2iijXd4j0C8FYUfKftEwIw5whidl8leMLWHMrSlo7GfRTUaHoMuC0QGPyKEI\n3CJB4DPMl8uxzaql1xuXSZ5vI7iiJnBXsgj/xB6aV1qI47ieA5ZkCM51TX8G\nY1G/\r\n=rtQa\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"2f5c5215503e0749fc1b1a82f4ecc3ce35c2571c","_npmUser":{"name":"deancording","email":"dean@cording.id.au"},"node-red":{"nodes":{"config":"config.js"}},"repository":{"url":"git+https://github.com/DeanCording/node-red-contrib-config.git","type":"git"},"_npmVersion":"6.7.0","description":"A node-red node to set flow and global context values at start up.","directories":{},"_nodeVersion":"11.15.0","dependencies":{},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-config_1.1.3_1590531282841_0.8180541246605024","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"node-red-contrib-config","version":"1.2.1","keywords":["node-red","config"],"author":{"name":"Dean Cording","email":"dean@cording.id.au"},"license":"MIT","_id":"node-red-contrib-config@1.2.1","maintainers":[{"name":"deancording","email":"dean@cording.id.au"}],"homepage":"https://github.com/DeanCording/node-red-contrib-config","bugs":{"url":"https://github.com/DeanCording/node-red-contrib-config/issues"},"dist":{"shasum":"32d2c95f5fe67a3e57b8319e494f379fe67f7217","tarball":"https://registry.npmjs.org/node-red-contrib-config/-/node-red-contrib-config-1.2.1.tgz","fileCount":10,"integrity":"sha512-j3etTlHLo0gQgi6H0+qZVYuA/3NWmK9Ci5mLEMy7wfUPEe2GFGuZ3CJJGHjysMUmAlOE+suLcFKbyLIs/8mLIA==","signatures":[{"sig":"MEQCIGzM0kdGVq7cT3tTagkKO+HJ4RRiOPNAzNWbCsXaIw+AAiBGfjNiaPxagWzg0qZcLWgJ7nbIMIEh+6MXeHGxyUX83g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62375,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfguQgCRA9TVsSAnZWagAAudQP/2I7empfBSg0WQp/KmLy\n+NZbem7O/dwEW2cJDKgywQcauMHEGRrUu7wNmODkAkTvxAhcDa2j3QrVabQh\nOYMNH+NUBZY0L7BQh7Xes5BK8Ej0lzuXpbfjFTMvqhr8Z47jISYrN+M9raxq\nHU+eMRu1kjTJ7gCJU91cSDvFIbvQB0JGvaBmC7ry+e6olRkC3b4CR256Wj7+\n3D/oeSehwoa2nioSRPs8F8aID/vnYhFzZR0wPxzU2CHE6kvfpDr4kkxAU4Ki\nFG6Klj3jEAzetB1+noGy9+XTr89OEHSSNGQSFLmi8ngVXtaxirl7Lpb+Waxv\n+yr/2dNcljZWYnVH57wuhuvAW5U0O3Zc3A8ZpA5L0SWPDftHn6SPh+T8mUaF\nF/ILXfUfnNZrQrTea7hNz2TqatKrH1xC5xT9tFag4EnYvdSwjw+Y+FOUmjZ/\nrRF5p3rJ5U7V1INuXfHLvB5yFdQtDhwZb7VfqdnDFy9uGkh4nn3ZBNik7iei\ndGVe9aLHkHPfLe/cDOtVBI9LRKF/13AaIB6sJQ18bZ2JmOHxrwAufoXRPnn4\nQuEmyRBsCDBMlMjoXblC5JIzaXy2Sstsa3y3Oyvkg+eoisBoOaConKCjp2xK\nOrI4CQJRWXCxOQ5ekOcZrXPIsjEYcMQppUHcHpicShYbi55XLZGGWfwnUyFZ\nUl2f\r\n=Z8vZ\r\n-----END PGP SIGNATURE-----\r\n"},"gitHead":"b35a99d43e1579db6f3c91e1fa90053415806411","_npmUser":{"name":"deancording","email":"dean@cording.id.au"},"node-red":{"nodes":{"config":"config.js"}},"repository":{"url":"git+https://github.com/DeanCording/node-red-contrib-config.git","type":"git"},"_npmVersion":"6.14.4","description":"A node-red node to set flow and global context values at start up.","directories":{},"_nodeVersion":"10.19.0","dependencies":{},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-config_1.2.1_1602413600141_0.5125084620487583","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"node-red-contrib-config","version":"1.2.2","description":"A node-red node to set flow and global context values at start up.","dependencies":{},"author":{"name":"Dean Cording","email":"dean@cording.id.au"},"license":"MIT","keywords":["node-red","config"],"bugs":{"url":"https://github.com/DeanCording/node-red-contrib-config/issues"},"homepage":"https://github.com/DeanCording/node-red-contrib-config","repository":{"type":"git","url":"git+https://github.com/DeanCording/node-red-contrib-config.git"},"node-red":{"nodes":{"config":"config.js"}},"gitHead":"d8e2e95dbcbfc908af5f9efb78cd78b995469d01","_id":"node-red-contrib-config@1.2.2","_nodeVersion":"20.16.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-C8XZ9ALo6K4K/fBbox1T56lyNIQTUFcLy0i6Oci1L4LyTsYyKy5M4fy8dH9MXy5kKApsD5hIF7AxOGWeWYumuA==","shasum":"c03a30c60e774e7684e30a2c7ea79ab713ca24a4","tarball":"https://registry.npmjs.org/node-red-contrib-config/-/node-red-contrib-config-1.2.2.tgz","fileCount":10,"unpackedSize":62646,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCowdHAZSxr0rtdIqRLw+jv9pfUrgm9IEKb0rWcbrN66QIgffIhEFDVgPE5OWrzd8cnaxQxGaVlzLk5/jiZWZZKdIQ="}]},"_npmUser":{"name":"deancording","email":"dean@cording.id.au"},"directories":{},"maintainers":[{"name":"deancording","email":"dean@cording.id.au"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-red-contrib-config_1.2.2_1736161680259_0.33111368885987025"},"_hasShrinkwrap":false}},"time":{"created":"2016-07-13T06:30:47.934Z","modified":"2025-01-06T11:08:00.598Z","1.0.0":"2016-07-13T06:30:47.934Z","1.0.1":"2016-09-16T12:09:38.141Z","1.1.0":"2017-07-05T00:46:18.688Z","1.1.1":"2017-07-05T01:02:32.611Z","1.1.2":"2018-01-07T07:35:22.445Z","1.1.3":"2020-05-26T22:14:42.974Z","1.2.1":"2020-10-11T10:53:20.379Z","1.2.2":"2025-01-06T11:08:00.457Z"},"bugs":{"url":"https://github.com/DeanCording/node-red-contrib-config/issues"},"author":{"name":"Dean Cording","email":"dean@cording.id.au"},"license":"MIT","homepage":"https://github.com/DeanCording/node-red-contrib-config","keywords":["node-red","config"],"repository":{"type":"git","url":"git+https://github.com/DeanCording/node-red-contrib-config.git"},"description":"A node-red node to set flow and global context values at start up.","maintainers":[{"name":"deancording","email":"dean@cording.id.au"}],"readme":"# node-red-contrib-config\nA Node Red node for setting global and flow context properties at startup and during runtime.\n\nThis node allows you to store configuration information in a central location and use it to set global and flow context properties at startup (initialization phase) or during runtime. Multiple `config` nodes can be used to store alternate configuration settings and switch between them during runtime.  \n![node-appearance](assets/node-appearance.png \"Node appearance\")  \n**Fig. 1:** Node appearance\n\n<a name=\"installation\"></a>\n## Installation\n\n<a name=\"installation_in_node-red\"></a>\n### In Node-RED\n* Via Manage Palette -> Search for \"node-red-contrib-config\"\n\n<a name=\"installation_in_a_shell\"></a>\n### In a shell\n* go to the Node-RED installation folder, e.g.: `~/.node-red`\n* run `npm install node-red-contrib-config`\n\n<a name=\"usage\"></a>\n## Usage\n\n<a name=\"node_configuration\"></a>\n### Node Configuration\n\n![node-settings](assets/node-settings.png \"Node properties\")  \n**Fig. 2:** Node properties\n\n#### Configuration of *Property* and *Value* ####\nThe object given in the **Property** field is the context property which shall be modified. This object can be a global or a flow variable.  \nThe contents of the **Value** field is the data which is written to the context property object. This object can be of the type\n* string\n* number\n* boolean\n* JSON\n* timestamp\n\n\n#### Checkbox *Active* ####\nIf  **Active** is checked (i.e. node is active), the configuration properties will be applied at startup before any flows are started. This may e.g. be used for initialization purposes.\n\n<a name=\"input\"></a>\n### Input ###\nIf the node receives any `msg`, it will apply the configuration properties contained in that `config` node. I.e. the value of the *Value* field is written into the variable given in the *Property* field. The received `msg` is discarded.  \nThis allows e.g. to alter configurations **programmatically**.\n\nPressing the **button on the left side** of the node will also apply the configuration properties contained in that `config` node.  \nThis allows also to alter configurations **manually**.\n\n\n<a name=\"output\"></a>\n### Output ###\nA message with the current timestamp is emitted to the `config` node's output 100 ms after the configuration is applied.\nA short delay is needed for Node RED to finish configuring and wiring the nodes. \n\n<a name=\"example\"></a>\n## Example ##\n***\n**Remark**: Example flows are present in the examples subdirectory. In Node-RED they can be imported via the import function and then selecting *Examples* in the vertical tab menue.\n***\n\nThe example flow shows an example where the global variable *PC_Stability*\n* is modified at startup (initial operation, only by the upper `config` node),\n* can be modified by the left button of both `config` nodes (manual operation),\n* can be modified by the upper both inject nodes (`msg` initiated operation).\n\nThe lower nodes only show the contents of the modified global variable.\n\n<img src=\"assets/flow.png\" title=\"Example flow\" width=\"600\" />\n\n[**ConfigNodeExampleFlow.json**](examples/ConfigNodeExampleFlow.json)  \n\n**Fig. 3:** `Config` node example\n\nThe  following figure shows the node configuration of the upper `config`node.\n\n<img src=\"assets/example1.png\" title=\"Example flow\" width=\"300\" />\n\n**Fig. 4:** Example `Config` node properties\n","readmeFilename":"README.md","users":{"chbardel":true,"boneskull":true}}