I'm a little bit lost here, I try to filter the lowest temp from the 5 day weather forecast to close some water valves if for example temp_min is below -5°..
Hereunder a small part (3 of 40) of the msg output from the 5 day weather forecast from openWeather API.
I just want to return all days when the (temp_min) is lower than -5° as a result. I was busy all day trying to get this result but I'm completely lost :-(.
Some insights would be appreciated.
I understand the basics of For loops and If then statements but it's really hard for me to apply this on real examples.
[
{"dt":1606489200,"main":{"temp":8.44,"feels_like":5.83,"temp_min":8.44,"temp_max":8.64,"pressure":1018}
,{"dt":1606500000,"main":{"temp":7.15,"feels_like":3.96,"temp_min":6.85,"temp_max":7.15,"pressure":1018}
,{"dt":1606510800,"main":{"temp":6.64,"feels_like":3.61,"temp_min":6.53,"temp_max":6.64,"pressure":1019}
]