We all know there’s nothing worse than going out for a run, a bike ride, a walk, or a hike… and getting caught in a torrential downpour! Or deciding to head out under the blazing sun at 3 PM and ending up melted like a strawberry popsicle. That’s why at MeteoSports.com, we’ve designed a special logic system to tell you — with the best digital common sense possible:
“Go now, it’s the perfect time to move!”
No more excuses!
First, a look at the data we use
We rely on meteorological information from WeatherAPI.com, which includes:
- Hourly temperature
- Wind gusts
- Chance of rain
- UV index
- Sunrise and sunset times
With all these ingredients, we create a “weather common sense algorithm” to recommend the healthiest time windows for exercising.
So… when is a good time to train?
Our logic evaluates each hour of the day and decides whether:

- The temperature is within a safe and pleasant range. We know that training in Cáceres isn’t the same as in Tromsø. That’s why we adjust the calculation using the day’s high and low to understand what’s “reasonable” for that specific location. If it’s cold, we look for the least cold hours; if it’s hot, the least hot.
- The wind won’t blow you away like a kite. We allow up to 25 km/h. If it’s higher, we recommend indoor training… or kite surfing.
- The UV index isn’t dangerous. If it’s below 7, you’re good to go. If it’s higher, we’ll warn you: “Use sunscreen or train in the shade.” You can read more about the effects of UV on the body in this WHO study: Radiation and Human Health.
- There’s no high chance of rain. If the probability is over 50%, we remove it from the recommendations.
- There’s enough sunlight. If you’re in nighttime or low-light hours (like 5 AM), we’ll gently warn you: “It’s a good time… but it’s dark. Bring a flashlight or lights.”
We call this: Smart Healthy Time Windows
Our system groups together consecutive hours that meet all of the above criteria and shows them as time blocks like:
“From 6:30 AM to 9:00 AM – Ideal for running (natural light + cool weather)”
“From 7:00 PM to 9:00 PM – Great time to train at sunset”
These time slots aren’t strict “rules,” but context-aware recommendations. It’s always smart to look at the sky and trust your instincts (just like mom would say).
And if you want to go further…
- Access the full hourly forecast
- Track changes in temperature, wind, and UV with interactive graphs
- Read our upcoming guides on training in rain, heat, or strong wind
This project
Created by Francisco J. Matos, meteosports.com is a personal initiative that combines technology, weather data, and sports. If you want to learn more or collaborate, you can visit our About Me page.
And if we helped you avoid an unexpected soaking…
Mission accomplished!
© 2025 Francisco J. Matos – meteosports.com