csparpa / pyowm

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

Error #371

Closed XMY400013 closed 3 years ago

XMY400013 commented 3 years ago

owm = OWM('Key')# instation Client Owm API mgr = owm.weather_manager()# instation manager mgr.forecast_at_coords(lat, lon, 'daily')# get forecast interval - daily /// raise exceptions.UnauthorizedError('Invalid API Key provided') pyowm.commons.exceptions.UnauthorizedError: Invalid API Key provided

csparpa commented 3 years ago

@XMY400013 OWM has restricted the Daily Forecast API, so it is not available for free users. They advice to use the One Call API instead, to get a daily forecast on the free plan

Please use PyOWM OneCall functions then...

Thanks!

XMY400013 commented 3 years ago

thanks for the clarification!