• 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 8.6k 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @bflbarlow
    last edited by Oct 18, 2019, 12:34 AM

    @bflbarlow

    Please start MM using npm start dev. You should see an error for MMM-Launch.

    Question: You are cloning the module into the MagicMirror/modules folder? Not into the default folder?

    Create a working config
    How to add modules

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

      The error, in the dev console on loading, should look like this

      Uncaught (in promise) TypeError: Cannot read property 'name' of undefined. As the api is slow to respond. Then, upon refresh, the module works normally, or should.

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • B Offline
        bflbarlow
        last edited by bflbarlow Oct 18, 2019, 12:44 AM Oct 18, 2019, 12:43 AM

        MMM-Launch is located at home/pi/MagicMirror/modules.

        The only errors were for openweathermap, so I removed that from the config.

        I’m only seeing some warnings, but no more errors.

        1_1571359413131_2019-10-17-194212_1824x984_scrot.png 0_1571359413130_2019-10-17-194220_1824x984_scrot.png

        1 Reply Last reply Reply Quote 0
        • B Offline
          bflbarlow
          last edited by bflbarlow Oct 18, 2019, 12:49 AM Oct 18, 2019, 12:46 AM

          I’ll include a screenshot here in a minute, but I’m noticing that “MMM-Launch received a module notification: CLOCK_SECOND from sender: clock” is being logged. Is that expected?

          EDIT: Screenshot.

          0_1571359742261_2019-10-17-194801_1824x984_scrot.png

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

            @bflbarlow

            I believe that is just the clock module broadcasting a notification and should have no affect on MMM-Launch as MMM-Launch has no action to perform when receiving.

            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, 12:53 AM

              @bflbarlow

              Can you open a browser and try this url?

              https://launchlibrary.net/1.2/launch?next=60&mode=verbose

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • B Offline
                bflbarlow
                last edited by Oct 18, 2019, 12:55 AM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @bflbarlow
                  last edited by Oct 18, 2019, 12:56 AM

                  @bflbarlow

                  Going out for a smoke. I’ll be back in 10.

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bflbarlow
                    last edited by bflbarlow Oct 18, 2019, 1:08 AM Oct 18, 2019, 12:57 AM

                    That URL worked great on the browser.

                    I really appreciate the help troubleshooting.

                    0_1571360825227_2019-10-17-200616_1824x984_scrot.png

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

                      @bflbarlow

                      No problem. Ok, so you can get data. Now let’s see what the module tells us about getting the data. Can you go in the MMM-Launch.js file and uncomment line 124. Save. Run MM again using npm start dev and see if it reports receiving the data from the api. It should look something like this

                      >Array (60)

                      Create a working config
                      How to add modules

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