-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Hitting the API limit #221
Comments
Hi @mermelmadness I created this issue for you from the comment. You're saying that you hit the API key limit for the month when you didn't before? |
Thanks @cloneofghosts for organizing this correctly! Weird glitch @mermelmadness, and not sure what went happened here. If you let me know the email you signed up with or send me an e-mail at api@pirateweather.net, I'll up the limit for the rest of the month. |
Thanks for this. Back in November this forum helped me re-setup the integration using the new GET weather protocol used in HA (Issue #137). Ever since then the configuration has remain unchanged on my end. Yet in April I hit the API limit. The e-mail I used is mermelmadness@gmail.com These are my current versions: IIRC, there is a way to up the API limit per month for a small fee. Can you remind me what that monthly fee is? I am considering paying for it since I use this many times daily. |
I'm going to assume you've already queried the browser to confirm that you've hit the API limit? Since you haven't hit the limit before you have your update interval low enough to not hit the limit? You could also try to regenerate your API key to see if it solves things though you'd have to setup the integration again if you want to change your API key. Here is a list of all available plans available. |
I think I see what happened. The plans changed. The free version used to allow 20,000 calls per month. I know this because I set my interval to be 00:02:15 because that would make 19,840 calls in a 31-day month. Now I'll set my interval to 00:04:28 which will make 9,995 calls per 31-day month. |
That makes sense why you hit the limit this month when you weren't before. @alexander0042 must have introduced a new tier with the same amount of calls for $2 and reduced the number of calls in the free tier. |
Hi, thanks for reaching out and opening this issue, I haven't changed anything recently, so the timing for this is sort of strange; and I'm wondering when you started seeing these errors show up- I'm seeing an increase in 429s (quota) errors starting April 15, so wondering if you aligned with that? |
@alexander0042 The API plans definitely changed, though. I distinctly remember setting my interval to come just under the free limit, so it was 20,000 at one point. Maybe AWS changed something under the hood? |
I got my entities back. Did something change? Wasn't expecting any data until May 1st. |
Maybe @alexander0042 upped your quota for this month to get things working again? |
That was my guess originally, but the entities haven't updated in 6 hours, so not sure. |
Do you get the message about your API quota being reached when you visit the browser or do you get a different error? Anything in the logs? |
Yea, this is definitely a weird one! Is there any chance you signed up using a different e-mail address? I can't even find that one in the system |
Wait, found it! I might know what happened here, give me 5 min |
Update, I've got no idea here, since everything looks ok on my end. You have one of the OG legacy keys, so actually set at a 25k cap, since I started very untrustworthy of my quota system. It's showing it entirely used, but I don't have enough logging to see exactly when. I upped the limit to 50k and enabled logging, so I'll be able to see exactly what calls are made for now. This will give a nice view of what's happening going forward, so should get to the root cause |
In the browser, yes. I didn't really check the logs since it seemed like my issue was the same as someone else's. |
Thank you. I look forward to see if any results show themselves. I can confirm the integration is working again on my end. I'll leave my interval as such for now:
|
Since everything seems to be sorted I'm going to close this for now. If you encounter more issues you can re-open this issue or create a new one. |
Dang, was about to sign off of work and post that this issue could be closed. Beat me to it by 2 minutes. Thanks for all your help. Everything seems to be working as expected. |
Yea, that must be it. The entities and forecast both use the same data update coordinator, so share API calls, but I suspect that rogue "8 entities" one is the issue here. Can you try deleting that, as well as (or commenting out) your YAML, and we'll see what that does. |
Hi @alexander0042 - could you please clarify this a bit more? I previously had my integration set up similarly to @mermelmadness with one instance for Entities and another for Weather. Honestly, I can't recall why I had done that. But when I ran into an API Limit issue this month, @cloneofghosts suggested (#218) consolidating to a single instance of the integration. My conclusion from that was that the former configuration was causing twice the API calls of the latter. Is that how it works? |
I had the same issue. The odd part is that I've had this integration set up exactly the same way since December, and this is the first month I've run into the API limit.
Originally posted by @mermelmadness in #218 (comment)
The text was updated successfully, but these errors were encountered: