athombv / homey-web-api-issues

This issue tracker is for Homey Developers using the Web API.
4 stars 1 forks source link

Error : 408, Timeout after 5000ms : weather endpoint #54

Closed hive closed 7 months ago

hive commented 7 months ago

I am receiving a 408 error from the weather endpoint, however this in fact seems to be a rate limit.

I am calling the endpoints getWeather once a minute, after a while I start getting the 408 error until I stop.

Further to this, my app also seems to be breaking the homey iOS app, the home page (which ahs the weather on it) will throw a rate_limited exception page.

Once a minute hardly seems excessive, given it updates every 15 minutes.

What is the rate limit for the weather endpoint, and can it please be documented.

hmeerlo commented 7 months ago

the ratelimit for getWeather is 20 times per minute, 100 calls per hour and max 300 calls per day.

hive commented 7 months ago

Thank you for the quick answer, this same api and rate limit is used also for the app.

How many calls is that making? If I call once every 5 minutes will the iOS app continue to give a rate limit error?

Is there any chance that rather then poking we could get an event on change?

PeterKawa commented 3 months ago

The weather gets updated while nothing changed. That's weird, a waste and useless.

How can we make sure the weather only sends changes instead of updates with just the same values? Also, is it possible to only send the changed value(s), instead of just all values?