Extract a variable at a specific time and feed into function

I have a variable which changes throughout the day, I want to take that variable at a specific time and feed it into another function.

for example at midnight my variable is 60, so I want to take "60" and feed that into the function - all the while my variable will change but my input will remain 60 until midnight the following day,

I've tried joining a trigger node with my inoput variable however have not been able to get anything remotely working - any help much appreciated

Use an Inject node - set to fire at whatever time you like once a day

Feed that to a change node - use that node to grab the context variable holding your value and place that into msg.payload

Feed the output from the change node to whatever it is you want to do with it

Craig

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.