DIsplaying wind direction needs particular "compass gauges".
Here is how they look on my "wind Only" Weather Station

Among these gauges only the second one (wind Speed) is native, the first and third one need a few lines of matlab code.
Let's start by creating a "Matlab Visualization" on your channel:

Click on "new visualization" then select the compass one:

Click on "create" and you will get sample code for this visualization:

You can save and run this code to get this result:

Although it's a good starting point, it's far from being perfect to display wind direction:
- North south Est West are not displayed
- arrow lines are pointing to the the direction from where the wind is coming
- 0 is on the right side instead of pointing to north
- angles are counter clockwise instead of classical ClockWise
I managed to find Matlab Gurus to help me correct these defects.
The source code is self explainatory and can be found on my github page: https://github.com/f2knpw/Long_Range_Weather_Station/tree/master/Matlab
If you change the code by this one you will get the expected result:

You can of course save this gauge on your channel:

When reading the source code, you will discover that it is more a less a "hack"... There is no proper way to achieve this result... that's a pity !
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.