Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running into a "too many requests error" - code 429 since move to v4 API #52

Open
bigcookie opened this issue Feb 11, 2021 · 3 comments

Comments

@bigcookie
Copy link

Hi, I do have 5 location I want to request information from. All of them require daily and real time information (but in intervals of 15 min or 60min) and one which requires realtime (every 15 min), daily (every 3hours) and hourly (every 15 min).
In HA I get a 400 and 429 error.

Details from log view:

Logger: custom_components.climacell.data_provider
Source: custom_components/climacell/data_provider.py:235
Integration: Climacell weather (documentation)
First occurred: 9:39:16 (5 occurrences)
Last logged: 9:39:17

ClimacellTimelineDataProvider._retrieve_data error status_code 400
ClimacellTimelineDataProvider._retrieve_data error status_code 429

Is there a chance to put some delay between the requests? Or whatever is required? Thank...

@bigcookie
Copy link
Author

The issue might have come by me configuring and trying again, or it might have come as some data could not be retrieved and the component tried again.
After reading some other issues, I noticed, that some field names changed or disappeared, causing no data for any field in one request being returned. I corrected that (trial and error a bit), now I can receive all data.

It would be great, to get a list of available fields. Somehow the field naming in the component vs climacell API differs (WindSpeed vs wind_speed) at least in some fields and it is unclear to me in which I can use the Climacell name and in which I have to use a different name.

Anyway, this is great work and many thanks for your dedication and work!!!!!

@jazzyisj
Copy link

jazzyisj commented Feb 11, 2021

I noticed, that some field names changed or disappeared.

You do realize the API completely changed right? I suggest thoroughly reading the documentation.

It would be great, to get a list of available fields.

https://docs.climacell.co/reference/data-layers-core

@bigcookie
Copy link
Author

Yes, I do. And my question still sticks as the documented fields in the API are not (always?) aligned with the required yaml field specification.
E.g api says „WindSpeed“, integration example uses „wind_speed“.
Or can I always use the API field specification and it would also work defining „WindSpeed“ in yaml?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants