I see that you have query variables for 10 minute speed, 10 minute gust, 10 minute gust direction but I don't see a 10 minute average for wind direction. For those of us with non-standard anemometer heights, gusts can switch directions quite a bit (or go missing for awhile). Winds are steadier and provide a better average.
It would be much appreciated!