Expected mean outside temperature

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?

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.

Fore the Netherlands

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

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.

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

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.

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

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

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?

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.

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.

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?

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

:warning: 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.

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?

Take the test-sting of weerlive.
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.

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

It has the same result.

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

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.