[Resolved] Daily call limit reached

Posted on
Mon Oct 12, 2015 3:35 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

[Resolved] Daily call limit reached

All of a sudden my WUnderground plugin is trying to request data every 5 seconds. I hit my API limit around 2am this morning.
I can't tell why?

Logs on Medium and debugs enabled shows the following:

Stopped plugin "WUnderground 0.9.25"
Starting plugin "WUnderground 0.9.25" (pid 12308)
WUnderground Debug Plugin preference logging is supressed. Set debug level to [High] to write them to the log.
Started plugin "WUnderground 0.9.25"
WUnderground Debug WUnderground startup called.
WUnderground Debug pushPluginPrefs() method called.
WUnderground Debug Starting WUnderground device: Weather
WUnderground Debug pushPluginProps() method called.
WUnderground Debug Unable to update device onOffState. Reason: 'Plugin' object has no attribute 'temperatureUnits'
WUnderground Debug runConcurrentThread initiated.
WUnderground Debug Sleeping for 5 seconds.
WUnderground Debug callDay() method called.
WUnderground Debug callDay: True
WUnderground Debug dailyCallLimitReached: 2015-10-12
WUnderground Debug Is todays_date: 2015-10-12 greater than dailyCallDay: 2015-10-12?
WUnderground Debug Today is not a new day.
WUnderground Debug Has the call limit been reached?
WUnderground Daily call limit reached. Taking the rest of the day off.
WUnderground Debug Sleeping for 5 seconds.
WUnderground Debug callDay() method called.
WUnderground Debug callDay: True
WUnderground Debug dailyCallLimitReached: 2015-10-12
WUnderground Debug Is todays_date: 2015-10-12 greater than dailyCallDay: 2015-10-12?
WUnderground Debug Today is not a new day.
WUnderground Debug Has the call limit been reached?
WUnderground Daily call limit reached. Taking the rest of the day off.
WUnderground Debug Sleeping for 5 seconds.

Posted on
Mon Oct 12, 2015 5:16 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Daily call limit reached

Hi there - sorry to hear that you're having trouble. It sounds like the plugin preferences file might be corrupted (there is no 5 second refresh option.) Please go into the plugin configuration dialog and see what the setting is for the Refresh Interval. I'm suspecting that it will not be set to anything. Please try setting that value to your preference and then reload the plugin from the menu. Hopefully, that will clear the error.

Fortunately, the plugin is reaching it's limit which is designed to keep you from reaching your actual limit on the WU site.

Please let me know how you get on.
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Oct 12, 2015 8:30 pm
keifer1 offline
Posts: 87
Joined: Oct 21, 2012

Re: Daily call limit reached

Just noticed I have reached the same limit today....

Thank you for all your contributions!

Computer Keith
Mt Pleasant SC - Charleston
Indi-Go -Go-Go

Posted on
Mon Oct 12, 2015 8:49 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Daily call limit reached

keifer1 wrote:
Just noticed I have reached the same limit today....

Seems that there may be something more to this particular bug if you're also having the same problem. Please try the above steps and let me know if that solves the problem for you.

My production version is at 290 calls for the day (that's while monitoring 4 weather locations), so unfortunately there's no guarantee that this problem will always occur. I'll go through the refresh interval code with a fine tooth comb to see if something has become out of whack. I also notice now that petematheson's debug did throw a message on 'temperatureUnits', so I'll have a look at that too.

Sorry for the troubles, and thanks for the kind words!
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Oct 13, 2015 2:43 am
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Daily call limit reached

I looked for the interval value yesterday but couldn't find it anywhere! Managed to find it this morning and you were correct, it wasn't set.

I've just set this and all seems to be OK now. Not sure why it cleared itself out though - It's been rock solid for a year or so now.

Cheers!

Posted on
Tue Oct 13, 2015 5:34 am
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Daily call limit reached

Thanks for reporting back. I'll look over recent changes to see if it might be a result of something I've done.

I think it's best if all users of the plugin take a look at this setting--found under the plugin settings menu--to ensure that this is properly set.

Dave


Sent from my iPhone using Tapatalk

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Oct 13, 2015 8:03 am
keifer1 offline
Posts: 87
Joined: Oct 21, 2012

Re: Daily call limit reached

My limit was still set for 5 min as expected. On another note I have had this message from ver 924....



WeatherSnoop Debug Updating device: CC Bay View Ambient
Started plugin "WUnderground 0.9.25"
WUnderground There are no severe weather alerts for the Mount Pleasant location.
WUnderground Error Unable to send forecast email message. Check plugin settings.
Send email error: empty string for float()

any ideas?

Thank you

Keith

Computer Keith
Mt Pleasant SC - Charleston
Indi-Go -Go-Go

Posted on
Tue Oct 13, 2015 11:25 am
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Daily call limit reached

Thanks Keith, I have another user reporting a similar error. This seems to be due to the fact that WU is sending null values where an empty string is expected. I will make this part of the code more robust in the next version. It's an easy error to fix, but that doesn't really do you much good right now!

Please stand by, a fix is on the way.
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Oct 20, 2015 6:42 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Daily call limit reached

keifer1 wrote:
My limit was still set for 5 min as expected. On another note I have had this message from ver 924....



WeatherSnoop Debug Updating device: CC Bay View Ambient
Started plugin "WUnderground 0.9.25"
WUnderground There are no severe weather alerts for the Mount Pleasant location.
WUnderground Error Unable to send forecast email message. Check plugin settings.
Send email error: empty string for float()

any ideas?

Thank you

Keith

This bug should now be fixed in WUnderground Plugin v0.9.26.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Oct 20, 2015 9:55 pm
keifer1 offline
Posts: 87
Joined: Oct 21, 2012

Re: Daily call limit reached

Interestingly the error seems to of disappeared . I just installed the update and shall let you know if anything is strange.

Computer Keith
Mt Pleasant SC - Charleston
Indi-Go -Go-Go

Posted on
Wed Oct 21, 2015 3:11 am
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Daily call limit reached

Good deal. I'm going to go ahead and mark this one as resolved, but if you should see anything else please do let me know.

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Oct 24, 2015 11:44 am
keifer1 offline
Posts: 87
Joined: Oct 21, 2012

Re: [Resolved] Daily call limit reached

Upgraded and noticed today...


Oct 24, 2015, 1:33:53 PM
Reloading plugin "WUnderground 0.9.26a"
Stopping plugin "WUnderground 0.9.26a" (pid 491)
Stopped plugin "WUnderground 0.9.26a"
Starting plugin "WUnderground 0.9.26a" (pid 26844)
iAutomate RFID - Detected 9004 [RFID Honda CRV], with a RSSI of 78 on Node 1
Started plugin "WUnderground 0.9.26a"
WeatherSnoop Debug Updating device: CC Bay View Ambient
WUnderground Error versionCheck: Unable to reach the version server.
WUnderground Daily call limit reached. Taking the rest of the day off.

Its set for 5min check and have restarted plugin.

Thanks as always for your contibutions.

Computer Keith
Mt Pleasant SC - Charleston
Indi-Go -Go-Go

Posted on
Sat Oct 24, 2015 2:36 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: [Resolved] Daily call limit reached

keifer1 wrote:
Upgraded and noticed today...


Oct 24, 2015, 1:33:53 PM
Reloading plugin "WUnderground 0.9.26a"
Stopping plugin "WUnderground 0.9.26a" (pid 491)
Stopped plugin "WUnderground 0.9.26a"
Starting plugin "WUnderground 0.9.26a" (pid 26844)
iAutomate RFID - Detected 9004 [RFID Honda CRV], with a RSSI of 78 on Node 1
Started plugin "WUnderground 0.9.26a"
WeatherSnoop Debug Updating device: CC Bay View Ambient
WUnderground Error versionCheck: Unable to reach the version server.
WUnderground Daily call limit reached. Taking the rest of the day off.

Its set for 5min check and have restarted plugin.

Thanks as always for your contibutions.

Hi Keith - sorry that you're having trouble with the update. Please turn debugging on high, restart the plugin once more, and then send the results in a PM to me.

Hopefully, we can get you sorted right away.
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Oct 24, 2015 2:59 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: [Resolved] Daily call limit reached

I think I have figured out part of the problem at least.

DropBox is inexplicably requiring "https" to view the file. When I try 'http' the link times out. I don't know why DropBox is requiring secure connections for some files and not others.

Working on it.
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Oct 24, 2015 3:13 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: [Resolved] Daily call limit reached

Okay, changing the source code to use https clears this error. Can't say I understand what's changed, but since it's working with https I'm going to forget about trying to figure it out! :D

The next version will have this fix.
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron