With the help from @Rocodamelshekima I got the help to try get a value from json, and Better logic and so far it looks ok.
Problem is, that I can`t figure out to put in the right value.
The value is the temperature, marked with yellow and flow attached
For my own needs i added three tags in the call. First and second tags are the longitude and lattitude. This way i can update my place of beiing very easy. Third tag is the api key. Just for sure if they change the key.
In my case $data[3].temp gives the position where temp(temperature) can be found in the json file. [3] stand in my case for the third position and temp stands for the variable temp in the json file
I have a question, and I’m not getting anywhere with JSON.
I would like to add a condition to my sprinkler that if the predicted amount of rain from the national weather service is greater than 0, the sprinkler will not start.
I have the url for the query to the weather service for the next 5 days:
First you have to make a flow to get the data from your weather service. This is the Get json Trigger object. In that flow you give this get request a name. For me it was Weerupdate12uur. You can give it any name you want, but with that name we can extract the variables in the next flow. In the following flow you call Weerupdate12uur and extract it into variables. You have to use better logic.
It is a bit trial and error how to. You could try
$.data[0].rainto
You first have to make in better logic the variable Regenmenge heute. The get request i called it Niederschlagmenge because i assume you can only put in one word and not more words.
The tricky part is to find out if $.data[0].rainto is correct
The number 0 stands for the place where the variable can be found. I had a json file with a 24 hour forecast. At 08:59 the 9 hour forecast was found at 0, the 10 hour forecast at 1, etcetc