Node-Red Start & Stop.
- This topic has 3 replies, 3 voices, and was last updated 8 years, 7 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Conduit: AEP Model › Node-Red Start & Stop.
Is there a way to figure out from the node-red flows when the node-red is about to start and stop, so data can be reloaded or archived into the disk/flash on the AEP model?
Thanks,
Ajay
Ajay,
I’m not aware of any way to do this. The only way to make sure your data is saved it to save your data periodically or on each update.
-Brandon
Thanks Brandon. How about the startup scenario, is there a way to read the data stored in a file before the flows begin processing any data?
Thanks,
Ajay.
Ajay, >>is there a way to read the data stored in a file before the flows begin processing any data?
Yes is Node-RED evaluates nodes as defined in the flows JSON config. So the the first node you add to the first workspace should be the first node to be evaluated. That said I have feeling the config nodes might get processed before.
Lawrence