I appreciate your help. Could you please guide me trough the following.
I want to convert the ‘wind direction, degree’ to a text value like N, W, S or E.
For example when the weather module output value is between 310° and 320° I would like to convert it to NW (north west). Or when the value is between 350° and 10° it supposed to be N (north).
could someone show me a function example or a different approach to this?
This is my Kitesurf forecast scenario at the moment:
When the wind direction is correct and windspeed is above a threshold it will send a message in Discord. That we can Kitesurf. But at the moment for the wind direct, I can only send a degree value. and I want this to be just N or N/NW or NW etc. etc.
Instead of a Tools module to set a variable I choose to just adjust the wind direction variable inside the discord message field. as shown in the print screen. it saves me an operation.