Maybe because the "log files" are Node-Red generated I should ask here.
For the past 18 months - or there about - I have been logging the temperature every.... 30 seconds.
The file is text and is time stamped.
So an extract of the file looks like:
2021-04-30 23:55:14 22.00 Deg C 22.00 Deg C
2021-04-30 23:57:22 21.00 Deg C 21.00 Deg C
2021-04-30 23:59:27 21.00 Deg C 22.00 Deg C
2021-05-01 00:01:30 21.00 Deg C 21.00 Deg C
2021-05-01 00:03:35 22.00 Deg C 22.00 Deg C
2021-05-01 00:05:40 22.00 Deg C 22.00 Deg C
2021-05-01 00:07:40 21.00 Deg C 21.00 Deg C
2021-05-01 00:09:51 21.00 Deg C 21.00 Deg C
(I now see I messed up with something, but that's by the by in the scheme of things)
So you have a date; time and temperature.
And ok, they are happening every 5 seconds.
So I want to handle these files and draw graphs with "averages" depending on how much you "zoom in".
Or the other way when you "zoom out".
So (going with the first one) you would see averages for the week - for the month. So you would see 4 weeks.
Zoom in and it goes to days. You would see the days.
Zoom in again and you would see the 24 hours for the day.
Zoom in again and you see the minutes
Zoom in again and you see the seconds.
At each level the averages are shown. "Averages"... Not sure if that is the correct word.
There are: averages; means; and other terms I don't know.
This is not something I do, so although I have the idea of what I want to do: actually getting it happening is a whole other kettle of fish for me.
Thanks folks.