Read the statement by Michael Teeuw here.
Too many API calls in default weather module after update
-
@Perilax @kristjanesperanto will have to answer, there was a big rewrite of the data collector side of weather.
-
I think you need these parameters:
updateInterval: 60 * 60 * 1000, retryDelay: 60 * 60 * 1000, // retry only once per hour -
Is „retryDelay“ really working ? I can‘t find it in the documentation.
I have two modules where I request the API every 10 minutes. So it should be around 300 requests per day.
By far less than 1000. -
Sam is right, that was caused by the big rewrite (which resolved other issues, particularly a fundamental architectural one).
A fix is already in the develop branch: https://github.com/MagicMirrorOrg/MagicMirror/pull/4092
Are you familiar enough with Git to test the develop branch?
-
@perilax
Or just a quick work-around as the default forupdateIntervalfor openweathermap is 10 minutes anyway.
Try to comment out those 2 lines with//.@kristjanesperanto
Quick response; quick fix 👍 -
I’ll test the develop branch tomorrow.
Thanks for the quick reply.@evroom I added
updateIntervalto my config.js only after the problem occurred, because I thought it might be causing the issue. -
@Perilax see this link for how to get the develop branch
https://forum.magicmirror.builders/post/86422 -
The develop branch is working. API requests are back to normal.
Can I make this change manually on the master branch for now, or do I need to let the develop branch run until the next update ?
Thanks again for the quick help.
Also to @sdetweil -
@Perilax i would let the develop branch run. We are discussing a point release to pick up a few fixes.
If you use my upgrade script when next version is ready, it will switch you back to master
-
I can´t use your update script, because I installed my MM with the proxmox helper script.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login