michaelahern / homebridge-airthings

A Homebridge plugin for Airthings air quality monitors via the Airthings Consumer API.
ISC License
39 stars 6 forks source link

errorRequest failed with status code 429 #44

Open kpejman opened 1 week ago

kpejman commented 1 week ago

I just updated my plugin to the latest version and since then I get below error in the logs and also all the values not showing in HomeKit anymore.

errorRequest failed with status code 429

michaelahern commented 1 week ago

HTTP 429 means the Airthings API is rate limiting you. Do you have any other processes polling the Airthings API? How many devices do you have and what is the value of refreshInterval in the plugin config?

kpejman commented 1 week ago

hi,

Thanks for your reply. I have 4 devices connected through the Airthings Hub. I also use my Airthings skills for Hoobs to get the data available to Apple HomeKit.

On Sun, Sep 8, 2024 at 4:20 PM Michael Ahern @.***> wrote:

HTTP 429 means the Airthings API is rate limiting you. Do you have any other processes polling the Airthings API? How many devices do you have and what is the value of refreshInterval in the plugin config?

— Reply to this email directly, view it on GitHub https://github.com/michaelahern/homebridge-airthings/issues/44#issuecomment-2336812847, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQMHZJOFXKNYL3ESQFSYI6TZVSWPBAVCNFSM6AAAAABN2K7MMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWHAYTEOBUG4 . You are receiving this because you authored the thread.Message ID: @.***>

--

Regards, Pejman Kianfar

michaelahern commented 4 days ago

Definitely will hit the Airthings API rate limit then. Try setting a custom refreshInterval of 300s instead of the default 150s..