As far as I know the astro channel only gives the position of the sun in degrees, not in compass directions.
Though I have no problem converting a degree to a compass direction, I might as well have Openhab do that for me.
It is very simple but perhaps other people are helped by it

I have 17 individual icons for this aptly named azimuth.png, azimuth-noord.png, azimuth-nno.png etc, and though they work well, I am not happy with them (just have a look at the picture above) so no use including them.

I used it to start from, however, for me, the directions were a little too fine-grained, so I reduced them to 8 wind direction names (45° each, and simplified a little). My code also considers the new Units of Measurements. So here’s my code, if someone would like to copy it:

Using metins code above I can transalte my weather station degrees to compass points.
However I’ve tried to use the same code (I’m not that good at coding) to change a Weather condition number value to a text description
eg
rule “current conditions wt1 to text”
when
Item W_Type1 changed
then
var Number wt1 = (W_Type1.state as QuantityType).doubleValue

if (wt=0)
W_Type1_Text.postupdate ("Clear Night")
else if....

Goes on for 30 codes
Item works as I did that before I did the rule
What I get when I load the rule is “variable wt1 not used in rules” therefore ignoring - loads but doesnt work
Since not used val I havent been able figure it out as that is what a lot of posts suggest
Any help please