• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

3rd Party Modules with APIs not loading.

Scheduled Pinned Locked Moved Unsolved Troubleshooting
32 Posts 3 Posters 9.2k Views 3 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.
  • B Offline
    bflbarlow
    last edited by Oct 18, 2019, 1:17 AM

    No errors a few minutes in.

    0_1571361418428_2019-10-17-201556_1824x984_scrot.png

    1 Reply Last reply Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer
      last edited by Oct 18, 2019, 1:21 AM

      @bflbarlow said in 3rd Party Modules with APIs not loading.:

      No errors a few minutes in.

      Sucks! You should see it right away. I’m stumped. I can’t reproduce this behavior with my module. You CAN get data, based on the url test. But, for you, the module is not getting the data. Thus, it’s not loading.

      I don’t think this is a module issue. I’ll ask my friend on the forum to look into this for you. He is amazing at troubleshooting MM and modules. I’m sure he will take a look at this. I’m sorry I couldn’t figure this out for you.

      Create a working config
      How to add modules

      B 1 Reply Last reply Oct 18, 2019, 1:23 AM Reply Quote 0
      • B Offline
        bflbarlow @Mykle1
        last edited by Oct 18, 2019, 1:23 AM

        Sounds good and no worries.

        Thanks for giving it a shot!

        M 2 Replies Last reply Oct 18, 2019, 1:24 AM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @bflbarlow
          last edited by Oct 18, 2019, 1:24 AM

          @bflbarlow

          You’re welcome. I’m sure it will get worked out when the right people take a look at it.

          Peace.

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @bflbarlow
            last edited by Oct 18, 2019, 1:30 AM

            @bflbarlow

            I’ve sent you a private message

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil
              last edited by Oct 18, 2019, 1:47 AM

              edit the ~/MagicMirror/modules/MMM-MyStandings/node_helper.js

              replace the getData function with this

              	getData: function (notification, url) {
              		var self = this;
              		console.log('requesting:' + url);
              		request({ url: url, method: 'GET' }, function (error, response, body) {
              			if (!error && response.statusCode == 200) {
              				var result = JSON.parse(body);
              				console.log("have data from api size="+body.length);
              				self.sendSocketNotification(notification, result);
              			} else {
              				console.log("MMM-MyStandings : Could not load data."+" error="+error+" status="+response.statusCode);
              			}
              		});
              	},
              

              open a terminal window
              stop mirror , pm2 stop 0

              then start manually
              npm start dev

              you should see

              ...
              MMM-MyStandings helper started ...
              Sockets connected & modules started ...
              Launching application.
              Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
              [14416:1017/204410.405574:ERROR:CONSOLE(2564)] "The given range isn't in document.", source: chrome-devtools://devtools/bundled/shell.js (2564)
              Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
              requesting:http://site.web.api.espn.com/apis/v2/sports/basketball/nba/standings?level=3&sort=gamesbehind:asc,winpercent:desc
              have data from api size=126499
              

              or something

              please advise

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Oct 19, 2019, 6:04 PM Reply Quote 0
              • S Away
                sdetweil @sdetweil
                last edited by Oct 19, 2019, 6:04 PM

                @bflbarlow did u see my message above?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bflbarlow
                  last edited by Oct 19, 2019, 6:15 PM

                  I did.

                  Sorry, I haven’t had the time to pick up troubleshooting.

                  Will hope to sometime this weekend.

                  S 1 Reply Last reply Oct 19, 2019, 6:16 PM Reply Quote 0
                  • S Away
                    sdetweil @bflbarlow
                    last edited by Oct 19, 2019, 6:16 PM

                    @bflbarlow cool. thanks for the feedback… i just noticed that I hadn’t tagged you…

                    no rush

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 4
                    • 3 / 4
                    3 / 4
                    • First post
                      28/32
                      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