johnwalicki / node-red-contrib-twc-weather

Node-RED nodes for The Weather Company and Weather Underground Personal Weather Station APIs
Apache License 2.0
10 stars 11 forks source link

Works beautifully - go to bed - yikes - works no more … #7

Open alpalNR opened 2 years ago

alpalNR commented 2 years ago

Hi!

Using observation node and correctly set up API key and units and flow works beautifully every minute for hours. Get up next morning and access is denied. Have I made too many requests? (Same thing happened yesterday and while trying to fix it came good again for no logical reason - at least not detected by me).

Here’s a screen shot.

B20FF6A4-6D7A-4D24-B078-97B1CCB52E91

Cheers Alan

johnwalicki commented 2 years ago

Glad you find the node-red-contrib-twc-weather Node-RED node useful. Great dashboard.

Is your API key assigned from wunderground.com ? I am not certain if there is a daily rate limit quota.
As a test, change the Inject node to "Every 2 minutes" That would decrease the daily API usage from 1440 (60x24) to 720 (30x24) Maybe there is a 1000 API calls / day rate limit?

alpalNR commented 2 years ago

Hey John and thanks for your prompt response. Really appreciate it.

I love your weather nodes - really added to my displays. I’m running Node-Red & MQTT on a RPi talking to remote Arduino MKR1010s. Having a ball with the technology (I’m old school - really old school - began my computing career on the seventies. A few changes since then. 😂

Yes, API key assigned when I registered my weather station - IKALIM1 (West Kalimna - Victoria - Australia). It’s still refusing access but hopefully will connect again soon and I’ll try your suggestion.

Regards

Alan

johnwalicki commented 2 years ago

Not far behind you. I wish it was 30C in New Jersey. Let me know and I'll update the documentation.

johnwalicki commented 2 years ago

Take a look at the API Key Usage at https://www.wunderground.com/member/api-keys Wonder if the graph shows your API Key hitting a quota limit.

alpalNR commented 2 years ago

Not on-site at the moment and can’t recall my registration details with Wunderground other than my API and location name. 🤷‍♂️ But the system is working again and I have reduced access to every three minutes. Will let you know if it locks me out again.

Thanks again for your attention. 👍 Stay tuned …

alpalNR commented 2 years ago

Failed again after around 12 hours at 3 minute lookups. Will reduce again to 6 minutes and see.

alpalNR commented 2 years ago

Very odd … cut back to trigger every 3 and it took 14 hours before the call became unauthorised - approx 280 calls. So if I triggered every 6 minutes, it takes 17 hours before failure - approx 170 calls. A mystery, n’est pas?

I am now going to try direct http gets and see if I get the same sort results. I can’t be the first person to do regular and frequent calls?

johnwalicki commented 2 years ago

Odd indeed - I will ask some of my contacts from The Weather Company if there is a rate limit on the PWS apis.

alpalNR commented 2 years ago

Hi J - any progress? I make only a few requests a day now but still get periodically locked out. I think there may be a residual effect from my prior use that I’ll need to get removed. Can you point me to someone at The Weather Company who may be able to assist?

swaxxiii commented 2 years ago

I am having the same problem. I am now reducing my polling frequency to 10 mins.

johnwalicki commented 2 years ago

Hmm - I'll start up my TWC instance again to try and reproduce the error.

johnwalicki commented 2 years ago

The flow has been running for 10 hours. Checking the forecast every 5 minutes.

alpalNR commented 2 years ago

Hey John

I’ve given up trying to work out when and where I’ll be stopped from having access to this api. I need reliability for my system and got nowhere even dealing with the TWC people who I managed to access. They told me I’d triggered a ‘go slow’ condition but were no help in resetting it. I’m now working on direct access to my own weather station equipment via http. Will let you know when I get there.

jimison commented 2 years ago

I had an issue with mine as well initially. I was checking every 15 seconds, and it died after several hours. Renewed by API key, and it took right off.

I opened a case, since I couldn't find any mention of API limits. Support informed me that the API key's volume is limited to 1500 calls per day and 30 calls per minute. 1500 calls per day will cover one request per minute all day, even during DST transition (25 hours * 60 calls / hour = 1500 calls).

I've slowed my polling to 1 per minute, and all is well.

johnwalicki commented 2 years ago

@jimison Thanks for clarifying the TWC API quota limits. Out of my control.