Closed christiankratzer closed 3 months ago
I ran that PR in my installation and it does exactly what I was looking for. Thx much @christiankratzer!
Since the meters do not always report at fixed intervals I was unhappy with the moving average. The rewrite implements a weighted average which is imho a better solution. Please let me know if this is sufficient for you. I'll close this one but feel free to reopen again.
This pull request creates a moving average filter that allows smoothing of values over a moving window of samples.
See: https://en.wikipedia.org/wiki/Moving_average