MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    MMM-CoinMarketCap

    Troubleshooting
    2
    2
    123
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Aladdin last edited by

      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?

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @Aladdin last edited by sdetweil

        @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");
        

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy