1) Give a description of the problem
I have a piston currently that turns on a switch when it is windy so that my motion lights get turned off outside so that the neighbors don’t get pissed. I live in New Mexico so we get a lot of wind in the spring. Currently, it pulls information from my Ambniant weather station every few minutes and if the gust is over X and the wind is over Y turn on the switch. We the wind could stop or slow down enough to turn off the switch and then gust enough to turn on the lights.
2) What is the expected behavior?
Instead of getting the current, I would like to run an average over 10 minutes and use those numbers, So as new reading comes in the last number drops off and you get a new average. I am not sure what the best way to do that. Anyone have anything like this or a recommendation.
3) What is happening/not happening?
Not a proper average
4) Post a Green Snapshot of the piston
(UPLOAD YOUR IMAGE HERE)
5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.