# Local weather group for Dashboard

**URL:** <https://discourse.nodered.org/t/local-weather-group-for-dashboard/387>\
**Category:** Dashboard\
**Tags:** weather\
**Created:** [25 May 2018 17:23 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387 "2018-05-25T17:23:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![igrowing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igrowing/32/663_2.png) [@igrowing](https://discourse.nodered.org/u/igrowing)\
**Post date:** [25 May 2018 17:23 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/1 "2018-05-25T17:23:48Z")

</div>

So pity to invent the wheel again.  
I wonder if someone already built a group for the Dashboard to present in nice graphical or pseudo-graphical way a local weather:

- Current weather;
- Forecast weather.

Most front-ends start with local weather examples. Likely Node-Red has one example/tutorial too. I just can't find it. Please, point me.

I found openweathermap node which brings JSON data of current weather or 5-day-forecast.  
As well, I found [Weather-Icons](https://github.com/Paul-Reed/weather-icons) which supposed to help with representation of codes into symbols.

However, I can't find working example or tutorial.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [25 May 2018 17:40 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/2 "2018-05-25T17:40:42Z")

</div>

Try [https://flows.nodered.org/?term=weather&num\_pages=1](https://flows.nodered.org/?term=weather&num_pages=1)

---

<div class="post-metadata">

**Author:** ![igrowing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igrowing/32/663_2.png) [@igrowing](https://discourse.nodered.org/u/igrowing)\
**Post date:** [25 May 2018 18:03 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/3 "2018-05-25T18:03:53Z")

</div>

Oh, yes, forgot to mention Node-Red library was searched and checked out.  
It has mostly examples of JSON processing into alerts, or conversion into other formats.  
There are 3-4 examples of visual widgets.

There is not example of full weather status or forecast in the library.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [25 May 2018 18:16 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/4 "2018-05-25T18:16:17Z")

</div>

have a look here - [https://community.openenergymonitor.org/t/node-red-weather-services-and-dashboards/2841/3](https://community.openenergymonitor.org/t/node-red-weather-services-and-dashboards/2841/3)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 May 2018 11:19 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/5 "2018-05-26T11:19:08Z")

</div>

Just be aware of the imminent demise of Weather Underground.

---

<div class="post-metadata">

**Author:** ![igrowing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igrowing/32/663_2.png) [@igrowing](https://discourse.nodered.org/u/igrowing)\
**Post date:** [26 May 2018 12:20 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/6 "2018-05-26T12:20:59Z")

</div>

> [@dceejay](#):
>
> have a look here - [https://community.openenergymonitor.org/t/node-red-weather-services-and-dashboards/2841/3](https://community.openenergymonitor.org/t/node-red-weather-services-and-dashboards/2841/3)

[Exactly this](https://community.openenergymonitor.org/uploads/default/original/2X/4/473f9cfe8036ea95a9e1ff5e139c71c1cc165af5.PNG) is what I was looking for.  
Interesting to have the flow of Paul.

> [@TotallyInformation](#):
>
> Just be aware of the imminent demise of Weather Underground.

This is why the OWM is preferred option. However, god knows which of these services lasts longer...

---

<div class="post-metadata">

**Author:** ![igrowing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igrowing/32/663_2.png) [@igrowing](https://discourse.nodered.org/u/igrowing)\
**Post date:** [27 May 2018 13:53 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/7 "2018-05-27T13:53:37Z")

</div>

Ok, let’s agree the Paul’s example is unreachable and I am too lazy (lege artis coder) to program the same thing myself.

An alternative way to have similar result with minimal effort (laziness rules!) is placing into a group a \<div\> or page or content from other meteorological web-site.

The HMTL node does not do that.  
Maybe template node?

---

<div class="post-metadata">

**Author:** ![ncherry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ncherry/32/27_2.png) [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Post date:** [27 May 2018 16:00 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/8 "2018-05-27T16:00:46Z")

</div>

> [@TotallyInformation](#):
>
> imminent demise of Weather Underground.

Do you have a bit more on this?

Ah, just found this:

> [@The end of Weather Underground!](https://discourse.nodered.org/t/the-end-of-weather-underground/409):
>
> Well, this is very disappointing. [https://www.wunderground.com/weather/api](https://www.wunderground.com/weather/api) Clearly left and right hands of IBM not talking. IBM seem to be removing the free tier of data as they subsume WU into their other services. I'm told (via Twitter so take with pinch of salt), that even people who send data freely to WU will not get free access to the API any more. It is very unclear whether current API access will last long.

---

<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:** [27 May 2018 21:01 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/9 "2018-05-27T21:01:04Z")

</div>

That’s a shame.  
I’ve used wunderground for a few years now, as I can use it to access weather data from an airport (I live about 2 miles away from one).  
I’ll have a look around and see where else I can get that data from… probably use ICAO METAR data which by law has to be accurate & reliable.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [28 May 2018 15:19 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/10 "2018-05-28T15:19:57Z")

</div>

Yes, the airport data is good if you happen to live fairly close. Though it doesn’t tend to have the depth of information that WU could provide via integration of user submitted data.

Annoyingly, the OWM sensor nearest to me is not very reliable, especially for pressure readings.

---

<div class="post-metadata">

**Author:** ![igrowing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/igrowing/32/663_2.png) [@igrowing](https://discourse.nodered.org/u/igrowing)\
**Post date:** [28 May 2018 19:21 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/11 "2018-05-28T19:21:36Z")

</div>

SOLVED.

Meanwhile Paul polishes the perfect weather group for the dashboard, there is another solution (continuing the idea of lazy coder).

1. Add to your flow the Inject node. Set it to trigger timestamp on start and every 30 minutes (more or less to your taste).
2. Add to your flow the template node.
3. Choose your favorite service which provides “free weather widgets for your web-site”.  
Examples:  
[https://content.meteoblue.com/en/products/service-access/widget](https://content.meteoblue.com/en/products/service-access/widget)  
[https://www.accuweather.com/en/free-weather-widgets](https://www.accuweather.com/en/free-weather-widgets)  
[http://www.booked.net/widgets/weather](http://www.booked.net/widgets/weather)
4. Tune your widget in that service, copy-paste the code into template node.
5. Connect inject node to template node.
6. Arrange node location in groups and tabs.

Have fun! The result is awesome and exactly by your personal favor. And total 5-10 minutes to sort this out.  
Still waiting for Node-REDdish proper solution from Paul 😉

---

<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:** [28 May 2018 21:55 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/12 "2018-05-28T21:55:14Z")

</div>

> [@igrowing](#):
>
> Meanwhile Paul polishes the perfect weather group for the dashboard

Hardly perfect - far from it!  
...but I've posted the flow below.  
The flow needs a couple of extra nodes to run;  
[node-red-contrib-persist](https://flows.nodered.org/node/node-red-contrib-persist) - so the chart data is not lost after a reboot etc.  
[node-red-contrib-credentials](https://flows.nodered.org/node/node-red-contrib-credentials) - to protect api keys that are used in function nodes.

I use both Darksky and Wunderground, that way, I find that I get a more comprehensive weather picture, so you'll need api keys for both. However, as the future of 'free' wunderground api's is uncertain, you will probably want to adapt it to use an alternative service.

[weather\_flow.txt](https://discourse.nodered.org/uploads/short-url/g40DQPs1TCUQ6pWD9J8ga3VoDBC.txt) (40.3 KB)

Paul

---

<div class="post-metadata">

**Author:** ![calitrappedindc](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@calitrappedindc](https://discourse.nodered.org/u/calitrappedindc)\
**Post date:** [18 November 2018 04:58 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/13 "2018-11-18T04:58:06Z")

</div>

Wunderground has deprecated their API 😢

---

<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:** [18 November 2018 08:49 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/14 "2018-11-18T08:49:28Z")

</div>

Yes, sad news. I'm now using Darksky instead of Wunderground.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 November 2018 22:20 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/15 "2018-11-18T22:20:00Z")

</div>

I'm using a mix of Darksky, Accuweather and OpenWeather for my updated processing. Still only really got as far as integrating the current temperature and humidities with my house sensors. None of these services give particularly accurate readings for me - even though I'e selected my home city, some of the sensors are miles away where the weather is actually significantly different.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c855df09288d1767e66edc94d05a90f776617aeb.png)

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

There is nothing useful to replace Wunderground for me. For the moment, I'm averaging things out

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5d1d9e376ef27f511afbb376ad543274a23cfa54.png)

---

<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:** [18 November 2018 22:31 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/16 "2018-11-18T22:31:59Z")

</div>

> [@TotallyInformation](#):
>
> None of these services give particularly accurate readings for me

Me neither!

I live less than a mile away from Doncaster Airport, and with Wunderground I was able to select the airport as a data source, and the results were spot on.  
Darksky does get the same data from the Airport, however it's then processed and remodelled, which for me gives inaccurate results.  
Like you, I'm going to get data from another source (probably METAR) and fill in the gaps with Darksky.

Paul

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 November 2018 22:38 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/17 "2018-11-18T22:38:27Z")

</div>

> [@Paul-Reed](#):
>
> I live less than a mile away from Doncaster Airport, and with Wunderground I was able to select the airport as a data source, and the results were spot on.  
> Darksky does get the same data from the Airport, however it's then processed and remodelled, which for me gives inaccurate results.  
> Like you, I'm going to get data from another source (probably METAR) and fill in the gaps with Darksky.

Well, you are only about 25 miles away from me. Much of the data for Sheffield comes from airports, some of it from Manchester airport which is the other side of the Pennines!

At least you are close enough to use the METAR data though.

Eventually, I'll get round to replacing the Oregon Scientific sensor in the living room which is really meant to be for outdoor use. Then I can actually move that outdoors and at least get accurate temperature and humidity readings.

I'm 600ft up facing towards Doncaster(ish) so there is little between us and the North Sea 🙂, With the Pennines behind us, it makes for "interesting" weather.

---

<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:** [21 November 2018 22:40 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/18 "2018-11-21T22:40:26Z")

</div>

Following on from our previous discussion (above), I've charted a comparison between a METAR api (blue trace), Darksky api (red trace), and a temperature sensor in my garden (yellow trace), and none of them are that far apart when reading the temperature.  
The METAR feed looks clunky as its resolution is to a degreeC, and the api only updates every 20 minutes, whilst the others have finer resolution, and are updated every 5 minutes.

All three readings relate to the same 1/2 mile radius. (I live next to an airport!)

I feel a bit happier about using Darksky now!

![temp](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/2c31a26364d882b8b13694e7109aae9f3680b190.png)

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [27 November 2018 06:16 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/19 "2018-11-27T06:16:43Z")

</div>

I have noticed a trend in that several Smart Home solutions are using YR.no as weather service. Maybe an alternative to the others

> **[node-red-contrib-yr](https://www.npmjs.com/package/node-red-contrib-yr)**
>
> A collection of Node-RED nodes for accessing yr.no weather info and data.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 November 2018 07:09 UTC](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387/20 "2018-11-27T07:09:31Z")

</div>

> [@krambriw](#):
>
> YR.no

Interesting. I'd always assumed that it only covered Norway but it seems I was wrong. Not entirely clear where it gets its data from for the UK. I see Airports listed, that's standard, they all use that. But I also see Netatmo in there too which might be interesting.

I'll add it to my data when I get a chance to see how it compares for me locally. It does have some local(ish) places listed but I'm not sure whether those are just from the geonames or whether they have actual data.

[Next page](https://discourse.nodered.org/t/local-weather-group-for-dashboard/387.md?page=2)
