node-red-contrib-persistent-global-context 1.0.5

Writes all data stored in Global Context to local filesystem to keep program data between Node-Red instance deployments and restarts.

npm install node-red-contrib-persistent-global-context

node-red-contrib-persistent-global-context

A Node-RED Node that writes all data stored in Global Context to local filesystem to keep program data between Node-Red instance deployments and restarts.

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-contrib-persistent-global-context

Usage

  • This node will save the Global Context data into a local file when it receives input.
  • So user must define the frequency of local data storage by adjusting the frequency of trigger sent to the node.
  • Use output message to check if the local context file is intact.

Example Flow

[{"id":"062d6b7526c1c316","type":"persistent-global-context","z":"2d2bad85f9c458c5","x":510,"y":280, "wires":[]},{"id":"01d5b21fa1056c7e","type":"inject","z":"2d2bad85f9c458c5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}], "repeat":"0.1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":250,"y":280,"wires":[["062d6b7526c1c316"]]}]

Node Info

Version: 1.0.5
Updated 1 year, 11 months ago
License: ISC
Rating: 2.0 1

Categories

Actions

Rate:

Downloads

28 in the last week

Nodes

  • persistent-global-context

Keywords

  • node-red
  • persistent global context
  • context
  • local context storage

Maintainers