← Back to context

Comment by firesteelrain

21 hours ago

I incorporated OpenMeteo into a project recently and got frustrated with their aggressive rate limiting. If in the US, weather dot gov has an excellent, free API. Or, OpenWeatherAPI which works internationally and has support for more things that weather dot gov does not. OpenWeatherAPI will also synthetically provide weather data based on their models if there is missing station data

> I incorporated OpenMeteo into a project recently and got frustrated with their aggressive rate limiting

Which one? They seem to do 600 calls / min, 5.000 calls / hour, 10.000 calls / day, 300.000 calls / month, how many times do you need to look up the weather for personal use? Fine, maybe you want 3 different locations, you can still call each of those sufficiently with those rate limits, no?

  • a redis geospatial index + redis distribution locks you can build a performant cache layer that is consumed by a ton of people and stay well under that rate limit.... the weather data only updates every 5 minutes too, so you can use that for your cache ttl.