Is there a response the caller receives after exceeding the historical request limit?

  • 1
  • Question
  • Updated 6 years ago
I have added code to ensure that we don't exceed the 10 historical weather requests in a minute limit. After requesting & downloading ten historical weather files, our code will wait until a minute passes to make the next request- if there is one.

However we want to protect against getting some kind of response from Weather Underground some case where this code doesn't work properly. We have received the notification email but we would like to have preventative code in case we receive a response that may state "You've exceeded your limit" or something similar.

Is there any other response we may receive via the API if we exceed the 10 historical weather requests/minute limit? Is there any way to know if a response is not a valid response because we've passed this limit and our "waiting" code didn't prevent exceeding our limit of downloads/minute?
Photo of skluczkiewicz

skluczkiewicz

  • 3 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
The results don't tell you when you've gone over, just the alert email. If the results stopped working when a raindrop is used, that might break apps that people have made that rely on the data. The best thing to do is to try to keep it to 10, and if you go over, that's okay, as long as you still have raindrops in your account.
Photo of skluczkiewicz

skluczkiewicz

  • 3 Posts
  • 0 Reply Likes
First, thanks for the quick informative response.

The only thing is, we are concerned about the case where the raindrops are used up for the week. If we start off with three raindrops for the week and between Sunday and Wednesday we use up those three raindrops, what will happen if we go past the 10/minute limit on Thursday? What kind of a response would we get?

As mentioned, we are coding to prevent this from happening but we want to make sure we code t cover all scenarios.

Thanks,
Stephen
Photo of skluczkiewicz

skluczkiewicz

  • 3 Posts
  • 0 Reply Likes
In addition, we are looking to testing this out. Is there any way we could suspend the raindrops so that we could test on a specific day or is our only option to test using up our raindrops to actually use up the raindrops?

Thanks,
Stephen