# Buienradar - windrichting

**URL:** <https://discourse.nodered.org/t/buienradar-windrichting/49841>\
**Category:** Dashboard\
**Created:** [17 August 2021 12:35 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841 "2021-08-17T12:35:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)\
**Post date:** [17 August 2021 12:35 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/1 "2021-08-17T12:35:46Z")

</div>

buienradar van  
[node-red-contrib-buienradar (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-buienradar) werkt OK  
Je kunt de windrichting goed aangeven in graden (0-360) met windrichtingGR.  
Vraag  
De windrichting met {{payload.buienradar.windrichting}} heeft een aanduiding nodig in de vorm  
N-NE-E-S-SW-W-NW  
Is daar iets voor beschreven?  
Iets anders dan:  
graden-degree to point-compass point /. n-points to degree-degree  
Dick

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [17 August 2021 21:33 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/2 "2021-08-17T21:33:36Z")

</div>

No idea if this is what you are looking for, but I found this with a little Googleing.

```auto
var degreesToCardinal = function(deg){
  if (deg>11.25 && deg<=33.75){return "NNE";}
  else if (deg>33.75 && deg<56.25){return "NE";}
  else if (deg>56.25 && deg<78.75){return "ENE";}
  else if (deg>78.75 && deg<101.25){return "E";}
  else if (deg>101.25 && deg<123.75){return "ESE";}
  else if (deg>123.75 && deg<146.25){return "SE";}
  else if (deg>146.25 && deg<168.75){return "SSE";}
  else if (deg>168.75 && deg<191.25){return "S";}
  else if (deg>191.25 && deg<213.75){return "SSW";}
  else if (deg>213.75 && deg<236.25){return "SW";}
  else if (deg>236.25 && deg<258.75){return "WSW";}
  else if (deg>258.75 && deg<281.25){return "W";}
  else if (deg>281.25 && deg<303.75){return "WNW";}
  else if (deg>303.75 && deg<326.25){return "NW";}
  else if (deg>326.25 && deg<348.75){return "NNW";}
  else {return "N";}
}

```

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [17 August 2021 21:42 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/3 "2021-08-17T21:42:48Z")

</div>

Check the flow library - [Convert wind direction in degrees to Cardinal direction. (flow) - Node-RED](https://flows.nodered.org/flow/11241456970cf4ad156dbc0fbb3fdd01)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [17 August 2021 22:02 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/4 "2021-08-17T22:02:26Z")

</div>

Or a simple function node containing...

```javascript
const dir = ["N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW", "N"]
msg.payload = dir[Math.round((msg.payload % 360) / 22.5)];
return msg;

```

![2HvUjtUC7E](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/8/2833f53306d763d823766b2f1c10dfa6dada7baa.gif)

Full demo flow...

```auto
[{"id":"fae4aae186e35517","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"11.24","payloadType":"num","x":650,"y":380,"wires":[["5805640b9486c47e"]]},{"id":"047c61d4e8e0c877","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"33.74","payloadType":"num","x":650,"y":480,"wires":[["5805640b9486c47e"]]},{"id":"102a9f98d23bdd3c","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"33.75","payloadType":"num","x":650,"y":540,"wires":[["5805640b9486c47e"]]},{"id":"8844d69f280c2e43","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"56.24","payloadType":"num","x":650,"y":580,"wires":[["5805640b9486c47e"]]},{"id":"5805640b9486c47e","type":"function","z":"62a0e5a5.fc59bc","name":"","func":"const dir = [\"N\", \"NNE\", \"NE\", \"ENE\", \"E\", \"ESE\", \"SE\", \"SSE\", \"S\", \"SSW\", \"SW\", \"WSW\", \"W\", \"WNW\", \"NW\", \"NNW\", \"N\"]\nmsg.payload = dir[Math.round((msg.payload % 360) / 22.5)];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":860,"y":500,"wires":[["5d92eb51bcdd9dd4"]]},{"id":"5d92eb51bcdd9dd4","type":"debug","z":"62a0e5a5.fc59bc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1030,"y":500,"wires":[]},{"id":"c777f8bd41667972","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"11.25","payloadType":"num","x":650,"y":440,"wires":[["5805640b9486c47e"]]},{"id":"dc86553f83a8c29c","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"348.75","payloadType":"num","x":650,"y":340,"wires":[["5805640b9486c47e"]]},{"id":"25e915f3b430db60","type":"comment","z":"62a0e5a5.fc59bc","name":"In accordance with http://snowfence.umn.edu/Components/winddirectionanddegrees.htm","info":"","x":890,"y":280,"wires":[]},{"id":"b98ca6f5997169e4","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"56.25","payloadType":"num","x":650,"y":640,"wires":[["5805640b9486c47e"]]},{"id":"e667b328ee4ad615","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"78.75","payloadType":"num","x":650,"y":700,"wires":[["5805640b9486c47e"]]},{"id":"1a3ce1c53c909aab","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"101.25","payloadType":"num","x":650,"y":740,"wires":[["5805640b9486c47e"]]},{"id":"224b04bac8344009","type":"inject","z":"62a0e5a5.fc59bc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"123.75","payloadType":"num","x":650,"y":780,"wires":[["5805640b9486c47e"]]}]

```

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [18 August 2021 06:07 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/5 "2021-08-18T06:07:41Z")

</div>

@dick,

This kind of conversions can also be made using the  
[node-red-contrib-compass](https://flows.nodered.org/node/node-red-contrib-compass) node.

Bart

---

<div class="post-metadata">

**Author:** ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)\
**Post date:** [18 August 2021 07:09 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/6 "2021-08-18T07:09:24Z")

</div>

Bart,  
bedankt voor de info.  
Zoals ik schreef in de vraag is daar een manier voor die werkt maar ik krijg dan de vermelding niet op het scherm bij de cirkel van het diagram.  
Ik zoek een andere oplossing  
Een afbeelding met die aanduidingen N-E enz al in de afbeelding.  
Dick

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [18 August 2021 10:09 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/7 "2021-08-18T10:09:45Z")

</div>

> [@dick](#):
>
> I'm looking for another solution  
> An image with the NE indications etc already in the image.

I am confused about your issue... are you looking for something like a dashboard display?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/b/1bfd8624a4e132dd359fb04b57548b6bcedc9da0.png)

---

<div class="post-metadata">

**Author:** ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)\
**Post date:** [18 August 2021 10:25 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/8 "2021-08-18T10:25:30Z")

</div>

Thanks

The display is good, but now i am looking for an integration in node-red/gauge/

Dick

Verzonden vanuit [Mail](https://go.microsoft.com/fwlink/?LinkId=550986) voor Windows

 ![1DBDCCB5B6C74A51A4340270580B4443.png](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/1/7159a975d714a6caee787759490140daf4d4fda6.png)

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [18 August 2021 19:36 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/9 "2021-08-18T19:36:43Z")

</div>

> [@dick](#):
>
> but now i am looking for an integration in node-red/gauge/

I still don't understand what you are asking from us? That display I showed IS a custom gauge in node-red

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [18 August 2021 22:13 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/10 "2021-08-18T22:13:32Z")

</div>

@dick I see you have another topic about collecting weather data... with equally confusing details...

Are you looking to make some form of display or have you already got one and want to add details like the wind compass?

I made this one from [OpenWeatherMap Weather Dashboard with Icons - Landscape (flow) - Node-RED](https://flows.nodered.org/flow/d7af9f5d6f6923324466c58ea4f0655f), and later added in my compass. I pull the weather data from [Weather API - OpenWeatherMap](https://openweathermap.org/api)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/b/6b7505b3ee2b42eb359e26b0d9cd9d3819331f72.png)

---

<div class="post-metadata">

**Author:** ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)\
**Post date:** [19 August 2021 07:37 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/11 "2021-08-19T07:37:26Z")

</div>

the custom display in node-red is without the markering e ,s,w etc.

the display you mentioned is not that i can find in NR.  
thanks for your efforts.  
Dick

---

<div class="post-metadata">

**Author:** ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)\
**Post date:** [19 August 2021 07:42 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/12 "2021-08-19T07:42:25Z")

</div>

Gunner,  
thanks  
My purpose at this moment is to integrate my OWN data (a string of values, transformed to excel as a  
possibility) When i get this data in NR, than comes the question how to do that?  
Is it possible to get a string of data into NR?  
Dick

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [19 August 2021 08:01 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/13 "2021-08-19T08:01:59Z")

</div>

> [@dick](#):
>
> the display you mentioned is not that i can find in NR.

It is a **custom gauge** based on Canvas. There have been a few recent topics about these such gauges and their various libraries.

> **[Canvas Gauges](https://canvas-gauges.com/)**
>
> Canvas gauges are open source minimalist HTML5-based components for web applications.

You may have to install the canvas library in your node-red static folder... similar to how I did in this post

> [@Gauge Node Color fixing](https://discourse.nodered.org/t/gauge-node-color-fixing/49410/14):
>
> What do you mean "also".. it IS the heart of that particular graphing method. What I did was change my node-red settings.js ... /\*\* When httpAdminRoot is used to move the UI to a different root path, the \* following property can be used to identify a directory of static content \* that should be served at http://localhost:1880/. \*/ httpStatic: '/home/pi/node-red-static/', Create a subfolder in my node-red-static folder called RGraph and extracted the contents of the dow…

* * *

Here is two examples of the same "gauge" with changes to size, colours, tick marks etc. The script source path assumes node-red's `settings.js` path is at `/home/pi/node-red-static/` and the folder containing the library is called `Canvas-Gauges` but you can make it however you want and edit the path accordingly.

```auto
[{"id":"c09d075d66e41467","type":"random","z":"8c7dfd6121113522","name":"","low":"0","high":"360","inte":"true","property":"payload","x":340,"y":460,"wires":[["9dac9baa9ffe467e","0e36bebef61b9bec","d21356027fdc21f8"]]},{"id":"9dac9baa9ffe467e","type":"ui_template","z":"8c7dfd6121113522","group":"a86601a0d85e8a94","name":"Compass","order":1,"width":10,"height":8,"format":"<div style=\"margin:auto\">\n \n<script src=\"/Canvas-Gauges/gauge.min.js\"></script>\n\n<canvas data-type=\"radial-gauge\"\n data-width=\"350\"\n data-height=\"350\"\n data-min-value=\"0\"\n data-max-value=\"360\"\n data-major-ticks=\"N,NE,E,SE,S,SW,W,NW,N\"\n data-minor-ticks=\"22\"\n data-ticks-angle=\"360\"\n data-start-angle=\"180\"\n data-stroke-ticks=\"false\"\n data-highlights=\"false\"\n data-color-plate=\"#222\"\n data-color-major-ticks=\"#f5f5f5\"\n data-color-minor-ticks=\"#ddd\"\n data-color-numbers=\"#ccc\"\n data-color-needle=\"rgba(240, 128, 128, 1)\"\n data-color-needle-end=\"rgba(255, 160, 122, .9)\"\n data-value-box=\"false\"\n data-value-Dec=\"0\" \n data-value-text-shadow=\"false\"\n data-color-circle-inner=\"#fff\"\n data-color-needle-circle-outer=\"#ccc\"\n data-needle-circle-size=\"15\"\n data-needle-circle-outer=\"false\"\n data-animation-rule=\"linear\"\n data-needle-type=\"line\"\n data-needle-start=\"70\"\n data-needle-end=\"99\"\n data-needle-width=\"3\"\n data-borders=\"true\"\n data-border-inner-width=\"0\"\n data-border-middle-width=\"0\"\n data-border-outer-width=\"10\"\n data-color-border-outer=\"#ccc\"\n data-color-border-outer-end=\"#ccc\"\n data-color-needle-shadow-down=\"#222\"\n data-border-shadow-width=\"0\"\n data-animation-duration=\"1000\"\n data-value={{msg.payload}}\n></canvas>\n</div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":660,"y":440,"wires":[[]]},{"id":"0e36bebef61b9bec","type":"ui_text","z":"8c7dfd6121113522","group":"a86601a0d85e8a94","order":2,"width":0,"height":0,"name":"","label":"Degrees","format":"{{msg.payload}}","layout":"col-center","x":660,"y":480,"wires":[]},{"id":"d21356027fdc21f8","type":"ui_template","z":"8c7dfd6121113522","group":"a86601a0d85e8a94","name":"Small Compass","order":3,"width":10,"height":3,"format":"<div style=\"margin:auto\">\n \n<script src=\"/Canvas-Gauges/gauge.min.js\"></script>\n\n<canvas data-type=\"radial-gauge\"\n data-width=\"140\"\n data-height=\"140\"\n data-min-value=\"0\"\n data-max-value=\"360\"\n data-major-ticks=\"N,NE,E,SE,S,SW,W,NW,N\"\n data-font-Numbers-Size=\"28\"\n data-minor-ticks=\"4\"\n data-ticks-angle=\"360\"\n data-start-angle=\"180\"\n data-stroke-ticks=\"false\"\n data-highlights=\"false\"\n data-color-plate=\"#333333\"\n data-color-major-ticks=\"lightblue\"\n data-color-minor-ticks=\"lightgrey\"\n data-color-numbers=\"cyan\"\n data-color-needle=\"rgba(240, 128, 128, 1)\"\n data-color-needle-end=\"rgba(255, 160, 122, .9)\"\n data-value-box=\"false\"\n data-value-Dec=\"0\" \n data-value-text-shadow=\"false\"\n data-color-circle-inner=\"#fff\"\n data-color-needle-circle-outer=\"#ccc\"\n data-needle-circle-size=\"5\"\n data-needle-circle-outer=\"false\"\n data-animation-rule=\"linear\"\n data-needle-type=\"line\"\n data-needle-start=\"70\"\n data-needle-end=\"99\"\n data-needle-width=\"3\"\n data-borders=\"true\"\n data-border-inner-width=\"0\"\n data-border-middle-width=\"0\"\n data-border-outer-width=\"2\"\n data-color-border-outer=\"#ccc\"\n data-color-border-outer-end=\"#ccc\"\n data-color-needle-shadow-down=\"#222\"\n data-border-shadow-width=\"0\"\n data-animation-duration=\"1000\"\n data-value={{msg.payload}}\n></canvas>\n</div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":680,"y":540,"wires":[[]]},{"id":"5c83c1e35c72d6e6","type":"inject","z":"8c7dfd6121113522","name":"","props":[{"p":"payload"}],"repeat":"3","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":110,"y":320,"wires":[["01183e3a5d78bff9","0c8a61b04dc5fd5a","3309ec3494dbae53","5d6c7e51cc1523bf","ab02a775fe61480c","637cc3cb57087783","4d92bd212b2e6b74","9851b92096c23aec","a7cecd63f040a432","c09d075d66e41467"]]},{"id":"a86601a0d85e8a94","type":"ui_group","name":"Compass","tab":"2deac665c2e9da53","order":9,"disp":true,"width":10,"collapse":false},{"id":"2deac665c2e9da53","type":"ui_tab","name":"Gauges Galore","icon":"data_usage","disabled":false,"hidden":false}]

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd14e016c2dcd05072a43b986a581a9d4b88d135.png)

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [19 August 2021 08:08 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/14 "2021-08-19T08:08:57Z")

</div>

> [@dick](#):
>
> My purpose at this moment is to integrate my OWN data (a string of values, transformed to excel as a  
> possibility) When i get this data in NR, than comes the question how to do that?

As stated in that other topic... there should be no need to get Excel involved, but you do need to provide clear details about where you are getting your data, and how it looks "natively" from the source.

These gauges (as do most) assume data as a number (in this case degrees 0-360), but just as it is possible to convert from number to cardinal, one can go the other way... See here (as posted above by @BartButenaers): [node-red-contrib-compass (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-compass)

But again... all depends on the source and type of your data and then what exactly you want to do with it.

---

<div class="post-metadata">

**Author:** ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)\
**Post date:** [20 August 2021 14:57 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/15 "2021-08-20T14:57:16Z")

</div>

Gunner,  
I run yous advice  
with`settings.js` path is at `/home/pi/node-red-static/`  
etc  
But i cannot find  
settings.js So it one a file without data  
How do I fill that settings.js?

Dick

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 August 2021 16:21 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/16 "2021-08-20T16:21:19Z")

</div>

settings.js should be in /home/pi/.node-red (note the period)

Inside it is a parameter ‘node-red-static’ that you can set to point at a folder for static data

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [20 August 2021 17:25 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/17 "2021-08-20T17:25:26Z")

</div>

> [@dick](#):
>
> But i cannot find

[https://nodered.org/docs/user-guide/runtime/settings-file](https://nodered.org/docs/user-guide/runtime/settings-file)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [20 August 2021 17:36 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/18 "2021-08-20T17:36:24Z")

</div>

The location of settings.js should be in /var/log/syslog.  
In a terminal run **tail -f /var/log/syslog**  
In another **sudo systemctl restart nodered**  
Then after a couple of seconds, in the first terminal CTRL c to stop the output.

You should get something like this

```auto
Aug 20 18:29:00 GlassPi Node-RED[14438]: 20 Aug 18:29:00 - [info] Node-RED version: v2.0.5
Aug 20 18:29:00 GlassPi Node-RED[14438]: 20 Aug 18:29:00 - [info] Node.js version: v12.22.5
Aug 20 18:29:00 GlassPi Node-RED[14438]: 20 Aug 18:29:00 - [info] Linux 5.10.52-v7l+ arm LE
Aug 20 18:29:00 GlassPi Node-RED[14438]: 20 Aug 18:29:00 - [info] Loading palette nodes
Aug 20 18:29:02 GlassPi Node-RED[14438]: 20 Aug 18:29:02 - [info] Dashboard version 2.30.0 started at /ui
Aug 20 18:29:03 GlassPi Node-RED[14438]: 20 Aug 18:29:03 - [info] Settings file : /home/pi/.node-red/settings.js
Aug 20 18:29:03 GlassPi Node-RED[14438]: 20 Aug 18:29:03 - [info] HTTP Static : /home/pi/.node-red/node-red-static

```

---

<div class="post-metadata">

**Author:** ![dick](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dick/32/61180_2.png) [@dick](https://discourse.nodered.org/u/dick)\
**Post date:** [22 August 2021 07:06 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/19 "2021-08-22T07:06:42Z")

</div>

Zenofmud and other persons who give me advice  
Thanks for that inf  
Especially to the person who writes the info on  
([Another gauge.js library - #17 by Gunner](https://discourse.nodered.org/t/another-gauge-js-library/49535/17))  
those infi is sublime  
and should be posted on Canvas-Gauges website/homepage.  
THANKS

Dick

---

<div class="post-metadata">

**Author:** ![guidoleijten](https://avatars.discourse-cdn.com/v4/letter/g/3be4f8/32.png) [@guidoleijten](https://discourse.nodered.org/u/guidoleijten)\
**Post date:** [25 August 2021 12:17 UTC](https://discourse.nodered.org/t/buienradar-windrichting/49841/20 "2021-08-25T12:17:20Z")

</div>

Don’t trust anything on google.  
Because in this case when deg=191.25 it will return “N”. 😁

[Next page](https://discourse.nodered.org/t/buienradar-windrichting/49841.md?page=2)
