owapi is a package to help you acquire weather data from the OpenWeather API. It employs the One Call API and can return, for any location:
- Current weather observations
- Weather forecast
- Hourly (next 48 hours)
- Daily (next 7 days)
- Historical observations for the previous five days.
All data is returned as Pandas DataFrames.
The API is limited to 1000 calls a day in the free tier. You can pay for more requests if required.
You will need to get an API key by signing up to OpenWeather.
owapi.set_api_key("my-api-key")
current = owapi.get_current_obs(53.381495, -1.471421)
hourly = owapi.get_hourly_forecast(53.381495, -1.471421)
daily = owapi.get_daily_forecast(53.381495, -1.471421)
historic = owapi.get_all_obs(60.33, -1.33)