A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
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");