Close

gauges on ThingSpeak using Matlab

A project log for Long Range Weather Station (65€)

A cheap but precise Weather Station (Lora transmission)

jp-gleyzesJP Gleyzes 07/18/2023 at 19:130 Comments

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:

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