Dear all,
I have incoming data (e.g. power from a washing machine) at a certain rate (e.g. 1/ 30 sec). I store it in a database (influx).
Sometimes the values do not change over some time, then successive data is all constant.
I use a rbe
-node to avoid writing redundant data into the DB. So far, so good.
However, when visualising the data from the DB, I run into a problem: There may be no recent data in the DB when it has not changed recently. But of course, there was data.
Therefore I want to
- store each single data item when it differs from the previous one
- store data at a certain rate when all the data are constant
Off course, I do not want to have a single data item twice in the DB.
I could not figure out how to achieve this with "standard" nodes, rbe
and throttle
the obvious suspects. A quick search in the unfathomable universe of contributed nodes did not yield anything usable for my use case.
Of course, I could achieve what I want it with my own function
node, but I think I have to learn more about the built-in nodes and their possibilities.
Any help appreciated, Uwe
Happy New Year 2021. Only one person can sit in front of a keyboard ... stay there!