# Trying to make winddirection compass gauge with ui\_control

**URL:** <https://discourse.nodered.org/t/trying-to-make-winddirection-compass-gauge-with-ui-control/60880>\
**Category:** Dashboard\
**Created:** [6 April 2022 13:50 UTC](https://discourse.nodered.org/t/trying-to-make-winddirection-compass-gauge-with-ui-control/60880 "2022-04-06T13:50:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [6 April 2022 14:26 UTC](https://discourse.nodered.org/t/trying-to-make-winddirection-compass-gauge-with-ui-control/60880/2 "2022-04-06T14:26:41Z")

</div>

See this link...

> [@Simple compass to display wind direction](https://discourse.nodered.org/t/simple-compass-to-display-wind-direction/46993):
>
> I was in the fast need to display a wind direction compass in the dashboard, with standard nodes. The easiest way was to use the "compass" mode of a gauge node. I have also added @ghayne node to [convert degrees to cardinal points](https://discourse.nodered.org/t/convert-wind-direction-in-degrees-to-cardinal-points/10931) (thanks Garry!). The inject can be replaced what whatever sensor sends a number in msg.payload, while msg.topic is filled with the Cardinal string representation. This is the flow: [{"id":"7954150f.8bb6cc","type":"inject","z":"fd95058a.48e3e8","name":"","props":[{"p…

Also there is this node that may be useful to you.

> **[GitHub - bartbutenaers/node-red-contrib-compass: A Node-RED node to convert a...](https://github.com/bartbutenaers/node-red-contrib-compass)**
>
> A Node-RED node to convert a degree to a compass point, or the other way around - GitHub - bartbutenaers/node-red-contrib-compass: A Node-RED node to convert a degree to a compass point, or the oth...

---

_[View the full topic](https://discourse.nodered.org/t/trying-to-make-winddirection-compass-gauge-with-ui-control/60880)._
