Hello Robert;
I am very new here (under this name - with a new "tude").
This is not an answer to your question but a compliment...I am building my own weather station and telling you your idea of building your own DIY program and hardware is a great idea - good for you!!!
My coding has taken me a year of so but very intermittently over this year of work. I am using the
SHT31 Sensitron series of temp/humidity sensors bought from Adafruit. It is an excellent sensor - no -
it is a GREAT sensor - the best I have ever tested over 30 years of DIY testing of temp/hum sensors. I come from a long career of work with advanced medical systems such as CT, linear accelerators, and a cyclotron built in Berkeley.
As for your question - I am deep into my own coding so I have no answer - how is that for a non-answer...
but...wind sensor displays are difficult. They are usually a matter of study of common data displays and then adapting your code to what you prefer. There are often standard coded mathematical models that become accepted standards. But that does not mean they are correct for all stations, at all times, for all locations on this planet.
I am suggesting you continue - try something, test it, and adapt your code to your needs - it is extremely rewarding - it is just plain fun because it is your coding and YOU can report what
you want and you can make additions and mods, just as you are attempting now, in your question. I am working on the issue of an easy to read, statistical display of wind direction over a 24 hour period.
Keep it up - your results will be far superior to most "store bought" systems and custom designed for your needs at your location and can change with sensor developments. Another problem I am working with is what I call house weather - room pollution readings and another example of rapidly changing sensor technology. Just the discussion of wind speed measurement is a very hot subject - so-to-speak.
Sorry for the non-answer but there are many very smart and considerate people here who can guide you.
Yfory