maybe that’s a easy one, but i don’t get it.
I want to calc an avg of an sensor input (e.g. Temp) over time (e.g. 24h).
So something like:
If (t < 24h)
tempSum = tempSum + tempcurrent;
avgTemp = tempSum / i;
Has someone an idea how to do this?
This variable should be send over E-mail, which is not a problem email plugin works fine