csparpa / pyowm

A Python wrapper around the OpenWeatherMap web API
https://pyowm.readthedocs.io
MIT License
789 stars 171 forks source link

Add support for precipitation probability from onecall API #349

Closed ahertz closed 3 years ago

ahertz commented 3 years ago

The onecall API returns a probability of precipitation for hourly and daily forecasts, which are not currently captured by pyowm. This patch adds support for them, when they are available.

The OWM api uses the name "pop" for this data point, but in the spirit of being explicit and obvious I'm using "precipitation_probability". I'm happy to change that to "precip_prob" or even "pop" if you feel that it's too long.

csparpa commented 3 years ago

Thank you @ahertz ! Could you re-issue the PR against the development branch instead please?

ahertz commented 3 years ago

Base changed. Sorry about that.