Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors

Wind compass card

  • Widget
  • 13 installs
  • v1.0.0
  • Nov 26, 2026
  • MIT license
  • v4.2+

Where is the wind coming from, and how hard is it blowing right now? A compass dial turns its needle to the latest direction, taking the short way round, while beside it the speed reads large and the gust and direction sit underneath, named as a compass point with its degrees. Keys are matched by name or set by role, units and decimals come from the keys, and the needle and values can change color with the wind speed.

Widget Type
  • Latest
Category
  • Cards & Info
  • Charts & Graphs
Use Cases
  • Air Quality Monitoring

Who it’s for

The Wind compass card is for anyone watching a weather station on a farm, a construction site, a port or a rooftop solar plant. They want to know at a glance where the wind is coming from and how hard it is blowing, without reading three separate numbers and turning degrees into a direction in their head.

What it does

The Wind compass card puts a compass dial and three readings side by side. With a speed of 29 km/h, gusts of 46 km/h and a direction of 273°, the needle points west and the card reads 29 km/h, 46 km/h and W · 273°.

  • The needle turns to the latest direction and always takes the short way round, so a change from 350° to 10° swings 20° through north instead of a full turn backwards.
  • The direction is named as a compass point next to its degrees, on an 8-point or 16-point rose.
  • The speed is printed large, with the gust and direction under it. Units and decimals come from each data key.
  • The needle and the values can change color with the wind speed, so a storm reads red before anyone looks at the number.
  • The whole card scales with its size, from a small tile to a wall display.
  • The card shows the latest values only. It does not draw a history or a wind rose over time.

How to set up

Data keys

The Wind compass card reads up to three keys from one entity. Each key’s Key role tells the card what the key carries. On Auto, the card reads the key name (gust, dir, speed, wind) and otherwise takes speed, gust and direction in the order the keys are listed.

  • Speed — Timeseries or Attribute, numeric. Printed large in the key’s own units. Without it, the needle keeps its default color and the speed row is not shown.
  • Gust — Timeseries or Attribute, numeric. Optional. Without it, the gust row is not shown.
  • Direction — Timeseries or Attribute, numeric degrees, where 0 is north and 90 is east. Without it, the dial is hidden and the card shows the speed values only.
  • Not shown — a role for a key you want to keep in the datasource without displaying it.

Until any of the keys has a value, the card shows No wind readings yet. Set the units (for example km/h or m/s) and the decimals on each data key.

How to customize

  • To keep the font sizes fixed at any card size — turn off Scale to fit (on by default).
  • To name the direction more finely, like WNW — set Compass points to 16 (N, NNE, NE…). The default is 8 (N, NE, E…).
  • To show only the point or only the degrees — change Direction format from Point and degrees to Point only or Degrees only.
  • To color the needle by wind strength — open Needle color and switch it to a range or a function. The ranges are tested against the wind speed.
  • To change the dial’s face — edit Dial color.
  • To change how the speed looks — edit Speed font and Speed color. A range on Speed color is tested against the speed itself.
  • To change the gust and direction values — edit Gust and direction font and Gust and direction color.
  • To change the small captions — edit Label font and Label color. The label color also colors the dial’s ticks and letters.
  • To rename a row — change the label of its data key. The card prints the key label above each value.

Tips

  • Meteorological wind direction is where the wind comes from. If your sensor reports where the wind blows to, add 180 in the data key’s post-processing function.
  • Put the Wind compass card next to a temperature or humidity card from the same station to build a compact weather panel.

Share Your Widget with the Community

Built a custom widget? Export it as a JSON from ThingsBoard and publish it to the IoT Hub through a simple 4-step wizard (Upload, Listing, Readme, Review & Submit). Share it with thousands of ThingsBoard developers worldwide and get featured in the catalog.