m0rp43us / openmeteopy

openmeteopy is a client Python wrapper library for Open-Meteo web API. It allows quick and easy consumption of OM data from Python applications via a simple object model and in a human-friendly fashion.
https://pypi.org/project/openmeteo-py/0.0.1/
MIT License
128 stars 29 forks source link

limit in the request calls #14

Closed jimoreira closed 1 year ago

jimoreira commented 1 year ago

hi, i have a query elaborated to request 312 spatial points, first with daily info of some variables, and then on hourly info. So a total o 624 request per day. It worked fine for a year, and nowadays i'm having BaseException: Failed retrieving open-meteo data, server returned HTTP code: 429 on following URL: .. i'm far from the 10000 limit. Also i have updated all the related packages, and still the same. Anyone with similar problems? and solutions? many thanks

jimoreira commented 1 year ago

the issue is related with the speed of the requests, the error was when it was run on a Ubuntu server, i have tried on my local machine, and works well, so i added a time.sleep(1) to the for loop, and now, works fine.