MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-CoinMarketCap

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 2 Posters 637 Views 2 Watching
    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 Offline
      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 Offline
        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

        How to add modules

        learning how to use browser developers window for css changes

        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 Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy