I am using Node-Red 3.0.2 and Node.JS v18.14.0x64
I have a Flow that has an Inject every 60 seconds
I have it connect to get some data and one of the points is a Value . Of that value (using a filter) is >= 60 AND <= 100, it starts getting a Temperature that I want every 60 seconds.
I put that in a csv file.
The file name is partially based on the timestamp that is in the format YYYY MM DD.
Again, that all works except it updates every 60 seconds.
I want to create a File Name that is something like "My Temperatures 20230218. csv"
Again not an issue.
The issue is:
How do I read the timestamp in a Function Node only the first time when my status >= 60 ( the status remains at that condition for a long time.)
I have some other functions where I want to "save" and use the information just once.
I want to make the File Name Static and use it in the path of the csv node.