andrewsg3 / gurgi_ws1

This repo contains all code necessary to run a raspberry-pi enabled weather station designed to support GUR's Saltire-II launch.
https://www.gurocketry.com/
The Unlicense
0 stars 0 forks source link

Database-Friendly sensor functions #21

Open andrewsg3 opened 2 years ago

andrewsg3 commented 2 years ago

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.