Search code examples
pythonweather-api

PyOWM Chance of rain


Getting this PyOWM module to work pretty well, understanding it a lot better, but I'm trying to find a way to get the percentage/chance of rain. It's just saying rain/light rain, doesn't say the % it will rain

import pyowm

owm = pyowm.OWM(owm_api_key)
fc = owm.daily_forecast('Oklahoma City,US', 8)
tomorrow = fc.get_weather_at('2017-04-04 18:00:00+00')
print(tomorrow.get_rain())
# {'all': 1.73}
print(tomorrow.get_detailed_status())
# light rain

Unsure if OWM doesn't support chance of rain or if there's some member of the forecast class I'm missing. pyowm open weather map api


Solution

  • Doesn't look like there's a chance of rain in the owm api, nothing to do with pyowm.