Wind direction and P/H/T can be sampled at point of insertion into database.
Button based ones more difficult.
How about rain button clicks are reset at moment of insertion into database. Then to get 15 minute rainfall, just sum last 15 minutes of tips.
Wind speed will require a separate thread to compute as it evaluates time between tips? Can have same thing, reset speed at moment of insertion into database.
Wind direction and P/H/T can be sampled at point of insertion into database.
Button based ones more difficult.
How about rain button clicks are reset at moment of insertion into database. Then to get 15 minute rainfall, just sum last 15 minutes of tips.
Wind speed will require a separate thread to compute as it evaluates time between tips? Can have same thing, reset speed at moment of insertion into database.