# Node-red-node-openweathermap - 5 day forecast NO DATA, current forecast DATA OK

**URL:** https://discourse.nodered.org/t/node-red-node-openweathermap-5-day-forecast-no-data-current-forecast-data-ok/86926
**Category:** General
**Tags:** function-node
**Created:** [2 April 2024 05:55 UTC](https://discourse.nodered.org/t/node-red-node-openweathermap-5-day-forecast-no-data-current-forecast-data-ok/86926 "2024-04-02T05:55:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ramoun](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@ramoun](https://discourse.nodered.org/u/ramoun)
#### Post date: [2 April 2024 05:55 UTC](https://discourse.nodered.org/t/node-red-node-openweathermap-5-day-forecast-no-data-current-forecast-data-ok/86926/1 "2024-04-02T05:55:42Z")

</div>

Hi,  
I'm sort of migrating from Openhab i.e. creating new rules in nodered, and migrating the broken ones.

In "node-red-node-openweathermap"  
"current weather" returns data, but  
"5 day forecast" returns no data.

General web search appears it has\worked for others, any ideas/pointers to a fix would be greatly appreciated.

Cheers

---

<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: [2 April 2024 07:09 UTC](https://discourse.nodered.org/t/node-red-node-openweathermap-5-day-forecast-no-data-current-forecast-data-ok/86926/2 "2024-04-02T07:09:50Z")

</div>

Have you tried a http request  
Try this add your api key to url in http request node.

```auto
[{"id":"dc0a24d356999705","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":640,"y":7860,"wires":[["bbb049edd2f2ea79"]]},{"id":"bbb049edd2f2ea79","type":"http request","z":"d1395164b4eec73e","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"api.openweathermap.org/data/2.5/forecast?lat=44.34&lon=10.99&appid={API key}","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":810,"y":7860,"wires":[["49ca1933244b103b"]]},{"id":"49ca1933244b103b","type":"debug","z":"d1395164b4eec73e","name":"debug 2488","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":990,"y":7860,"wires":[]}]

```

[Docs for 5 day forcast api](https://openweathermap.org/forecast5)

---

<div class="post-metadata">

### Author: ![ramoun](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@ramoun](https://discourse.nodered.org/u/ramoun)
#### Post date: [2 April 2024 10:28 UTC](https://discourse.nodered.org/t/node-red-node-openweathermap-5-day-forecast-no-data-current-forecast-data-ok/86926/3 "2024-04-02T10:28:27Z")

</div>

Thanks E1cid, couldn't see the forest for the trees.

Appears the service has changed, 5 day is out.

Also appears API has a new version, 3

---

<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: [2 April 2024 11:27 UTC](https://discourse.nodered.org/t/node-red-node-openweathermap-5-day-forecast-no-data-current-forecast-data-ok/86926/4 "2024-04-02T11:27:35Z")

</div>

5day http api call is working for me on the old api. Maybe you can not subscribe to that api anymore.

You may want to raise an issue on the openweathermap nodes github page.

---

<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: [1 July 2024 11:28 UTC](https://discourse.nodered.org/t/node-red-node-openweathermap-5-day-forecast-no-data-current-forecast-data-ok/86926/5 "2024-07-01T11:28:09Z")

</div>

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