# Darksky API Does not Respond with Temperature

**URL:** https://discourse.nodered.org/t/darksky-api-does-not-respond-with-temperature/19891
**Category:** General
**Created:** [4 January 2020 01:10 UTC](https://discourse.nodered.org/t/darksky-api-does-not-respond-with-temperature/19891 "2020-01-04T01:10:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JCB2277](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JCB2277](https://discourse.nodered.org/u/JCB2277)
#### Post date: [4 January 2020 01:10 UTC](https://discourse.nodered.org/t/darksky-api-does-not-respond-with-temperature/19891/1 "2020-01-04T01:10:38Z")

</div>

The Darksky node does not return the current temperature - all the other info is in the api response and fairly easy to parse out but I had to add hardware to my project for current temperature - would much rather get from Darksky - anyone able to point me in the right direction?

---

<div class="post-metadata">

### Author: ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)
#### Post date: [4 January 2020 01:46 UTC](https://discourse.nodered.org/t/darksky-api-does-not-respond-with-temperature/19891/2 "2020-01-04T01:46:13Z")

</div>

Did you try to change the configuration of the node by chosing "Input Defined" (and setting the current time to msg.time ?

![a-01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/eb15e80bc1b2342762999764cdfb66d4da55ba29.png)

If that is not working then an alternative might be issuing a separate http request (not using the DarkSky node).

This part of the [doc](https://darksky.net/dev/docs#forecast-request) explains:

Forecast Request

A Forecast Request returns the **current weather conditions** , a minute-by-minute forecast for the next hour (where available), an hour-by-hour forecast for the next 48 hours, and a day-by-day forecast for the next week.

---

<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: [4 January 2020 10:16 UTC](https://discourse.nodered.org/t/darksky-api-does-not-respond-with-temperature/19891/3 "2020-01-04T10:16:24Z")

</div>

In the Darsky node select `Forecast = Tomorrow`, then parse the output to get the current temperature.

In a function node try;

```auto
msg.payload = msg.data.currently.temperature;
return msg;

```

OR - in a change node

![change](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f4c6ec546df2fc2ae3d6b3b36c6de062f236a479.jpeg)

To see what else is available in current conditions, try `msg.payload = msg.data.currently` which should give you something like;

![currently](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/2958401fb541985a18a74153265c06bbfef87cd9.jpeg)

...and which can be parsed by using `msg.data.currently.ozone`, `msg.data.currently.dewPoint` etc etc
