Skip to content
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

ibm (wunderground) API keys #24

Open
aolfish opened this issue Jul 2, 2024 · 4 comments
Open

ibm (wunderground) API keys #24

aolfish opened this issue Jul 2, 2024 · 4 comments

Comments

@aolfish
Copy link

aolfish commented Jul 2, 2024

Weather Underground has changed they API key settings. API keys are now limited to 1500 calls per day and 30 calls per minute.

That equals 1440 Calls per day for device.
I have 2 stations reporting so my daily call is 2880, which is over the limit .
Weather Underground suspends my key and starts failing.
I regenerate new key and it will work for couple days then repeats.

Any way to change calling from 1 minute to 2 minutes ?

@leoherzog
Copy link
Owner

Classic. Ugh.

Apps Script only lets you choose every one or five minutes :(

If you change Line 107 in the code from:

if (updateWunderground) ScriptApp.newTrigger('updateWunderground_').timeBased().everyMinutes(1).create();

to:

if (updateWunderground) ScriptApp.newTrigger('updateWunderground_').timeBased().everyMinutes(5).create();
// options are every 1, 5, 10, 15 or 30 minutes
// https://developers.google.com/apps-script/reference/script/clock-trigger-builder#everyMinutes(Integer)

Minutes-based triggers dropdown options in the menu

@leoherzog
Copy link
Owner

There are alternative ways to schedule it every 2 minutes with a watcher function that sets exact every-two-minutes triggers, but it'd add a lot of complication to the code. Sorry 'bout that.

@aolfish
Copy link
Author

aolfish commented Jul 2, 2024

Thanks Leo.
May try directly from Acurite since you've updated since we first started. That would cutdown half of my daily call.

@karss79
Copy link

karss79 commented Jul 4, 2024

@aolfish: Instead of having two devices under one wunderground account, why don't you use separate WU account for each device. By this way, you may be able to overcome the WU API call limits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants