Condition
in the top action block.
40.7143
and longitude of -74.006
to get weather information for New York.
Visit https://open-meteo.com/en/docs to get the coordinates for your location and just replace them in the URL.
If we make a request to that API, here’s an example of output data we receive:
precipitation_probability_max
which provides us with the highest rain probability for that specifc day. In this example the value for this is 97
, so a 97% probability for rain that day.
The following syntax let’s us access that value from response:
{{steps.get-rain-probability.outputs.Body.daily.precipitation_probability_max.0}}
75
, 50
or 30
cases to your preference. The switch condition will check the cases chronologically, so if case 1 is true it will be executed, no matter what has been defined in the following cases. You can change this to an If Condition if you only want to be notified if rain probability exceeds a specfific value.
The https://open-meteo.com API provides a lot of flexibility and enables you to build all sorts of weather apps for you or your users!