You can use transformations in rules, to get your wind direction.
You can format quantity types with their own method, see the last section of this post