Read the statement by Michael Teeuw here.
MMM-CoinMarketCap
-
I have a little issue with the random api request to CoinMarketCap api. The requests intervall ranges from 15s to a couple of minutes. My update intervall config is set to 15min and tried to restart my rpi4 and also to add retry delay to over 10min without success. The current credit average calls are 600 calls/day.
Does anyone have any idea on how to solve it?
-
@aladdin i’m not sure, lookingat the code I find one place to try to fix…
in the modulename.,js , starting at line 386
// get info back from node_helper who just made an api request, sam } else if (notification === "LISTINGS_RECEIVED" && !self.loaded) { if (payload.isSuccessful && payload.data.status.error_code == 0) { self.log(self.translate("LISTINGS_SUCCESS", { "numberOfAttempts": payload.original.attemptNum })); self.listings = payload.data.data; self.filterCurrenciesAndSetupDataSet(); self.loaded = true; // update the UI , sam self.updateDom(0); // schedule next update, sam self.scheduleUpdate(); // oops.. and go get the data AGAIN now??? , instead of wait on scheduled update??? sam self.getAllCurrencyDetails(1); // comment out this line, sam self.cacheLogos(); // and this line (using // , sam // oops , sam self.log(("self.config.currencies: " + JSON.stringify(self.config.currencies)), "dev");
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