# Openweather node question

**URL:** <https://discourse.nodered.org/t/openweather-node-question/75668>\
**Category:** General\
**Created:** [24 February 2023 07:09 UTC](https://discourse.nodered.org/t/openweather-node-question/75668 "2023-02-24T07:09:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [24 February 2023 07:09 UTC](https://discourse.nodered.org/t/openweather-node-question/75668/1 "2023-02-24T07:09:49Z")

</div>

## _Existing_

Daily I ask `openweather` for a weather report and if there is no rain, it does something.  
All is good - to a point.

## _Problem_

Say it starts raining at mid-night and rains until 10:00 then stops.  
Mid-day comes and the weather says it isn't raining.  
(But it has for the last 10 hours)

## Question:

How can I get a _history_ of the past 10 hours of weather?  
Getting a forecast doesn't quite cut it as it often says things and they don't happen.  
So getting the past history is better.

Is this possible?  
Someone?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [24 February 2023 08:33 UTC](https://discourse.nodered.org/t/openweather-node-question/75668/2 "2023-02-24T08:33:15Z")

</div>

Openweather api does have historical data, but i think it is not free, and you would need to make a http request.

Why not store the daily request data for 24hrs.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [24 February 2023 08:34 UTC](https://discourse.nodered.org/t/openweather-node-question/75668/3 "2023-02-24T08:34:44Z")

</div>

I was going to do that, but if the payloads have that data already.... Why re-invent the wheel? 😉

Ok, so I shall poll it every hour (I'll only do the previous 12 hours) and store that value.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 April 2023 08:35 UTC](https://discourse.nodered.org/t/openweather-node-question/75668/4 "2023-04-25T08:35:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
