# Expected mean outside temperature

**URL:** <https://community.homey.app/t/expected-mean-outside-temperature/125642>\
**Category:** Apps\
**Tags:** weather, homey-pro-2023\
**Created:** [December 27, 2024, 9:03pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642 "2024-12-27T21:03:27Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ernesto128](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ernesto128/32/113066_2.png) [@Ernesto128](https://community.homey.app/u/Ernesto128)\
**Post date:** [December 27, 2024, 9:03pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/1 "2024-12-27T21:03:27Z")

</div>

For a sprinkler installation in the garden I’m looking for a value of the forecast of the **mean outside temperature** of the next day. In Weather, OpenWeather and KNMI I didn’t find the proper parameters.  
Does anyone have a suggestion which weather app can give me such information?

---

<div class="post-metadata">

**Author:** ![SingKT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/singkt/32/173226_2.png) [@SingKT](https://community.homey.app/u/SingKT)\
**Post date:** [December 29, 2024, 8:34am UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/2 "2024-12-29T08:34:50Z")

</div>

Weather by open-meteo provides info about weather in 1, 2, … days, updated every hour. You might pull the values hourly per script and do your calculations.

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [December 29, 2024, 9:06am UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/3 "2024-12-29T09:06:38Z")

</div>

Fore the Netherlands

> **[Het Weer in Nederland: live metingen, radar en verwachtingen - Weerlive.nl](https://weerlive.nl/)**
>
> Het weer in Nederland: temperatuur, windsnelheden en verwachting. Én de grafieken voor de komende 24 uur: hoe gaat het weer zich het komende etmaal ontwikkelen? Je leest het hier.

There your have the KNMI API with 10 minutes values and 4 days.  
On the day itself every hour.  
It’s in JSON format.

---

<div class="post-metadata">

**Author:** ![Ernesto128](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ernesto128/32/113066_2.png) [@Ernesto128](https://community.homey.app/u/Ernesto128)\
**Post date:** [December 29, 2024, 7:34pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/4 "2024-12-29T19:34:52Z")

</div>

Thanks for your reply. I do have the weather app. But then how do I retrieve the mean expected day temperature?  
I suppose it can be done in an advanced flow.

---

<div class="post-metadata">

**Author:** ![Ernesto128](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ernesto128/32/113066_2.png) [@Ernesto128](https://community.homey.app/u/Ernesto128)\
**Post date:** [December 29, 2024, 7:36pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/5 "2024-12-29T19:36:30Z")

</div>

Thanks for your reply. In JSON only? I can’t get int in an advanced flow?

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [December 29, 2024, 8:00pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/6 "2024-12-29T20:00:55Z")

</div>

Here a part of my flow to take the data out of the JSON file.  
Look fist good to that file to see the abbreviation.

 ![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/2/02b645781f692a3ee447847471ab73fb0484751c.jpeg)

The arrows show the differences in some places.  
Find them in that JSON file and you know why. 😉

The JSON file comes in the “Liveweer JSON” variable.  
Every data then out of that variable.

---

<div class="post-metadata">

**Author:** ![Ernesto128](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ernesto128/32/113066_2.png) [@Ernesto128](https://community.homey.app/u/Ernesto128)\
**Post date:** [January 1, 2025, 2:45pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/7 "2025-01-01T14:45:26Z")

</div>

Thanks! It looks like the way to go.  
You made a variable Liveweer JSON. Is that a number of text type?  
And the command Lees Antwoord JSON, how do I get that one? It doesn’t seem to be in my list of options. I’m not yet familiar with Logical commands in Homey. Could you give step by step instructions?

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [January 1, 2025, 3:17pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/8 "2025-01-01T15:17:17Z")

</div>

If you can’t see the different colors there are an a=text(green), #=number(blue) and v=j/n(red) as token in front of the name.

Lot of cards have a tag sign on front. If you hover er over you see which data outputs there are.  
“Antwoord”=answer is the output of the card before, here with that GET request. (look there for that tag sign)

The whole API file is via “Antwoord”=answer put in the text variable Liveweer JSON.  
The cards in the line down reading that API in JSON out.

In that “Get request card” is a part blanked out. There put you your API key.

---

<div class="post-metadata">

**Author:** ![Ernesto128](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ernesto128/32/113066_2.png) [@Ernesto128](https://community.homey.app/u/Ernesto128)\
**Post date:** [January 1, 2025, 3:47pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/9 "2025-01-01T15:47:42Z")

</div>

I’m getting there.  
Lees is an option under Then, not under And.  
And what do you fill in in the initial GET action for header and body? In your screenshot it’s empty but I need to fill that in too.

---

<div class="post-metadata">

**Author:** ![Ernesto128](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ernesto128/32/113066_2.png) [@Ernesto128](https://community.homey.app/u/Ernesto128)\
**Post date:** [January 1, 2025, 3:53pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/10 "2025-01-01T15:53:26Z")

</div>

Found already that I had inserted the wrong option, this should be a Then option instead of a And option.  
The next error occurs under nummer-tag. Is that a variable too?

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [January 1, 2025, 5:05pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/11 "2025-01-01T17:05:55Z")

</div>

Have make a picture of it, says sometime more then text.

 ![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/7/b7e29806781dbd74db2e6337f7803b48e209b682.jpeg)

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [January 5, 2025, 1:02pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/13 "2025-01-05T13:02:57Z")

</div>

⚠ **Black your key. Delete your post also**

Look to the blue and green arrows in my post.  
There it says in the same colors **Result**. Nothing else.  
That is what you get-out the JSON file.

You get this by the looking for a tag. On top of the list you see “This flow”.  
If you see more “Result” tags, hoover over one and watch the tag on the “Lees” card.  
When that is turning blue you have the right “Result” tag.

---

<div class="post-metadata">

**Author:** ![Ernesto128](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ernesto128/32/113066_2.png) [@Ernesto128](https://community.homey.app/u/Ernesto128)\
**Post date:** [January 12, 2025, 3:13pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/14 "2025-01-12T15:13:32Z")

</div>

Thanks. Finally figured it out.  
What I missed but discovered:

- the Make a GET request should be found under Then options, not And. And there are 2 types, 1 with and one without a tag card (indicated to the right of the title). So we use here the tagged one.
- The next card is also a Then-card, and the options to pull in the tags “Result” or “Answer” only appear when this last card is connected to the previous one.
- The variables Result and Antwoord appear in a list, but I had to make the variable “Liveweer JSON” myself.

There is one issue left now: KNMI does provide several expected temp values (but no mean expected value), like expected max temp today.  
How do I retrieve that form the JSON?  
Can I find somewhere what exactly the output is of the JSON?

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [January 12, 2025, 3:42pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/15 "2025-01-12T15:42:24Z")

</div>

> [@Ernesto128](#):
>
> Can I find somewhere what exactly the output is of the JSON?

Take the test-sting of weerlive.  
[https://weerlive.nl/api/weerlive\_api\_v2.php?key=demo&locatie=Amsterdam](https://weerlive.nl/api/weerlive_api_v2.php?key=demo&locatie=Amsterdam).  
Put this in you browser command line.  
Later you can do that with you one ‘key’ and ‘place’.

Cards that have to ‘get’ or calculate’’ something make tag of there findings, sometime more the one.  
Those tag can used by cards after them.

---

<div class="post-metadata">

**Author:** ![Ernesto128](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ernesto128/32/113066_2.png) [@Ernesto128](https://community.homey.app/u/Ernesto128)\
**Post date:** [January 12, 2025, 3:54pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/16 "2025-01-12T15:54:41Z")

</div>

Thanks. Found it. The one I need is the max\_temp.

After this I am wondering if it is not much more simple to just pull in the KNMI variable:  
 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/d/8d56c7a91c7b3237a016f669e2234b6371e75f42.png)

It has the same result.

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [January 12, 2025, 4:03pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/17 "2025-01-12T16:03:38Z")

</div>

In Pushberichten I have no experience.

What I notices that KNMI not reliable is in there data.  
New data for the KNMI app here is 1 hour off now.

Further you wanted max temp for days ahead

---

<div class="post-metadata">

**Author:** ![Ernesto128](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ernesto128/32/113066_2.png) [@Ernesto128](https://community.homey.app/u/Ernesto128)\
**Post date:** [January 12, 2025, 4:09pm UTC](https://community.homey.app/t/expected-mean-outside-temperature/125642/18 "2025-01-12T16:09:32Z")

</div>

I think the difference will be that with your flow your own api and thus your location will be retrieved with probably more accurate local values.  
I suppose the general KNMI tags will be for the location of their institute in the center of the country.
