# Trying to get rainfall values from openweather

**URL:** <https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070>\
**Category:** Dashboard\
**Created:** [16 March 2019 23:47 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070 "2019-03-16T23:47:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuckf201](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chuckf201/32/91382_2.png) [@chuckf201](https://discourse.nodered.org/u/chuckf201)\
**Post date:** [16 March 2019 23:47 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/1 "2019-03-16T23:47:20Z")

</div>

I'm looking for the syntax from openweather to dashbard.  
the usual works: var msg6 = { payload:msg.payload.windspeed};  
but not for 'rain'.  
Looked in openweather but no luck.  
thaks

---

<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:** [17 March 2019 01:24 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/2 "2019-03-17T01:24:59Z")

</div>

Go read [Msg.payload to influxdb](https://discourse.nodered.org/t/msg-payload-to-influxdb/9066/2) and see if it helps

---

<div class="post-metadata">

**Author:** ![chuckf201](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chuckf201/32/91382_2.png) [@chuckf201](https://discourse.nodered.org/u/chuckf201)\
**Post date:** [17 March 2019 18:32 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/3 "2019-03-17T18:32:40Z")

</div>

works well with msg.payload.humidity as the link suggests but no variable for rain, or rainfall.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 March 2019 20:23 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/4 "2019-03-17T20:23:45Z")

</div>

If you use a debug node to look at the payload is the rain there?

---

<div class="post-metadata">

**Author:** ![chuckf201](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chuckf201/32/91382_2.png) [@chuckf201](https://discourse.nodered.org/u/chuckf201)\
**Post date:** [17 March 2019 21:04 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/5 "2019-03-17T21:04:37Z")

</div>

No, it's not.  
I went with darksky instead.

Thanks to you all.

---

<div class="post-metadata">

**Author:** ![JackDynamite](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jackdynamite/32/21741_2.png) [@JackDynamite](https://discourse.nodered.org/u/JackDynamite)\
**Post date:** [18 May 2020 05:36 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/6 "2020-05-18T05:36:01Z")

</div>

I am just setting up a retic system in node red and going to incorporate rainfall darksky looks good but only a short term solution. Any ideas what you are going to replace darksky with now apple has bought it and discontinuing the API next year?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [18 May 2020 06:15 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/7 "2020-05-18T06:15:43Z")

</div>

Where are you based ? For instance in Australia - the Australian BOM offers a free download/XLM feed for most areas (the depth and breadth of info differs based on region  
Craig

---

<div class="post-metadata">

**Author:** ![JackDynamite](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jackdynamite/32/21741_2.png) [@JackDynamite](https://discourse.nodered.org/u/JackDynamite)\
**Post date:** [19 May 2020 01:45 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/8 "2020-05-19T01:45:40Z")

</div>

Yer I am in Perth. I there is a package [node-bom](https://www.npmjs.com/package/node-bom) which will get data from bom. I will have a look into this.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [19 May 2020 01:49 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/9 "2020-05-19T01:49:03Z")

</div>

Nope no package that i have found - i am getting most of my data through Home Assistant as there is some really good stuff over there for using BOM and then i pump it out to my NR instance.

I also have a basic flow that can pull down the BOM stuff and you can extract whatever you want from it - but it is a little fiddly

Craig

---

<div class="post-metadata">

**Author:** ![JackDynamite](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jackdynamite/32/21741_2.png) [@JackDynamite](https://discourse.nodered.org/u/JackDynamite)\
**Post date:** [19 May 2020 01:56 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/10 "2020-05-19T01:56:04Z")

</div>

> [@craigcurtin](#):
>
> i am getting most of my data through Home Assistant

I am HA user too, doing up retic system and wanted rainfall predictions + rainfall mm in last X days to make node red skip watering where needed.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [19 May 2020 04:40 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/11 "2020-05-19T04:40:53Z")

</div>

Well have a look at this over here on the HA forums

> **[Customising the BOM Weather and lovelace - now in HACS](https://community.home-assistant.io/t/customising-the-bom-weather-and-lovelace-now-in-hacs/123549/397)**
>
> I was more referring to the still\_image\_url: http://www.bom.gov.au/gms/IDE00135.jpg section

Its a long read but will get you the info you want, you could then grab it and send it over to NR

They do some weird stuff with NR in HA - so i would suggest running a seperate instance rather than the one provided in the Integrations

Craig

Craig

---

<div class="post-metadata">

**Author:** ![MulacNZ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mulacnz/32/44524_2.png) [@MulacNZ](https://discourse.nodered.org/u/MulacNZ)\
**Post date:** [8 July 2021 05:09 UTC](https://discourse.nodered.org/t/trying-to-get-rainfall-values-from-openweather/9070/12 "2021-07-08T05:09:36Z")

</div>

Rain has been added 3 days ago to the node-red integration:

> <https://github.com/node-red/node-red-web-nodes/pull/282>
>
> \<!--
> \## Before you hit that Submit button....
> 
> Please read our \[contribution …guidelines\](https://github.com/node-red/node-red-nodes/blob/master/CONTRIBUTING.md)
> before submitting a pull-request.
> 
> \## Types of changes
> 
> What types of changes does your code introduce?
> Put an \`x\` in the boxes that apply
> \--\>
> 
> \- \[\] Bugfix (non-breaking change which fixes an issue)
> \- \[x\] New feature (non-breaking change which adds functionality)
> 
> \<!--
> If you want to raise a pull-request with a new feature, or a refactoring
> of existing code, it \*\*may well get rejected\*\* if it hasn't been discussed on
> the \[mailing list\](https://groups.google.com/forum/#!forum/node-red) or
> \[slack team\](https://nodered.org/slack) first.
> 
> \--\>
> 
> \## Proposed changes
> 
> 
> 
> \## Checklist
> 
> 
> \- \[x\] I have read the \[contribution guidelines\](https://github.com/node-red/node-red-nodes/blob/master/CONTRIBUTING.md)
> \- \[\] For non-bugfix PRs, I have discussed this change on the forum/slack team.
> \- \[\] I have run \`grunt\` to verify the unit tests pass
> \- \[\] I have added suitable unit tests to cover the new/changed functionality
> \- \[x\] I have have tested this on my local nodered instance
