OpenWeather call limits exceeded
Hi,
Received an e-mail today stating that I'm exceeding the free call limit of 2000 calls per day to OneCallAPI.
I have three instances of SignalK and Freeboard each with a separate API key.
They are configured to make a call every hour, I have a hard time summing that up to 2000 calls.
One theory derived from the logs is that when a call is not succesful the retry is bombing openAPI
This from the logs...
Jul 13 00:36:47 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Jul 13 00:36:47 dronten signalk-server[171781]: Restart freeboard-sk plugin to retry.
Jul 13 00:36:47 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Jul 13 00:36:47 dronten signalk-server[171781]: Restart freeboard-sk plugin to retry.
Jul 13 00:36:47 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Jul 13 00:36:47 dronten signalk-server[171781]: Restart freeboard-sk plugin to retry.
Jul 13 00:36:47 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Jul 13 00:36:47 dronten signalk-server[171781]: Restart freeboard-sk plugin to retry.
Jul 13 00:36:47 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Jul 13 00:36:47 dronten signalk-server[171781]: Restart freeboard-sk plugin to retry.
Jul 13 00:36:47 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Is it reasonable that if the call fails, simply give up and try again after the configured interval?
Any ideas welcome.
5 Replies
So as not to exceed OpenWeather API request limits, as the log shows, it stops trying after a certain number of attempts.
You need to stop and restart the plugin to start the polling again.
There is also a watchdog to stop retries if the node timer tick goes astry (have has instances where
setTimeout
does not wait the specified time and just fires multiple times a second.
If this occurs the RPi requires a reboot.
The timestamps in the log indicate it is not waiting multiple multiple seconds between retires.... all timestamps are 00:36:47
Looks like a runaway timer....rebootAgreed, Indeed something is running totally wild 🙂

I will reboot and disble weather for now since I'm going to be away for 5 weeks, do not want this to happen when I'm away...
FYI, it looks to me reading the logs as if the error message from openweather about the account beeing blocked actually makes things worse...
When that occurred Freeboard extends it's tries and is making calls for several seconds...
Up until that point there are log entries every hour ( like the first sample)
After that many times more and looks like this.
Jul 13 05:38:22 dronten signalk-server[171781]: Your account is temporary blocked due to exceeding of requests limitation of your subscription type. Please choose the proper subscription https://openweathermap.org/price
Jul 13 05:38:22 dronten signalk-server[171781]: message repeated 26 times: [ Your account is temporary blocked due to exceeding of requests limitation of your subscription type. Please choose the proper subscription https://openweathermap.org/price]
Jul 13 05:38:22 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Jul 13 05:38:22 dronten signalk-server[171781]: Restart freeboard-sk plugin to retry.
Jul 13 05:38:22 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Jul 13 05:38:22 dronten signalk-server[171781]: Restart freeboard-sk plugin to retry.
Jul 13 05:38:22 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Jul 13 05:38:22 dronten signalk-server[171781]: Restart freeboard-sk plugin to retry.
Jul 13 05:38:22 dronten signalk-server[171781]: Weather: Failed to fetch data after 3 attempts.
Jul 13 05:38:22 dronten signalk-server[171781]: Restart freeboard-sk plugin to retry.
If you want I can upload a complete logfile.
00:38, 01:38, 02:38, 03:38 04:38 (rough times) are all without the account block message, still increasing number of log entries each hourly try and 05:38 things go really bananas 🙂
It keeps trying until I disabled weather and restarted, millions of tries.
Not at all sure this is a Freeboards issue, but strange behaviour anyhow.
Thanks for the information. I will do some tests to see if it is a plugin issue.
@Tore Dahl I have "simplified" the polling logic to remove the chance of timer issues.
These will be in the next Freeboard_SK release later this week.
Sound great!! Thanks!!