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-EveryNews is not loading anything

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 2 Posters 1.2k 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.
    • J Offline
      JeanMichelC
      last edited by

      I edtited node_helper.js in this folder MagicMirror/js and could not find the code you asked me to change. The only reference I found that checking the response return code 200 is

      NodeHelper.checkFetchStatus = function (response) {
      // response.status >= 200 && response.status < 300
      if (response.ok) {
      return response;
      } else {
      throw Error(response.statusText);
      }
      };

      1 Reply Last reply Reply Quote 0
      • J Offline
        JeanMichelC
        last edited by

        I was looking in the wrong folder, I found it in the MMM-EveryNews folder, making changes now

        1 Reply Last reply Reply Quote 0
        • J Offline
          JeanMichelC
          last edited by

          @sdetweil said in MMM-EveryNews is not loading anything:

                 if (!error) {
                      if(response.statusCode == 200) {
                          var result = JSON.parse(body).articles;
                          this.sendSocketNotification('NATGEO_RESULT', result);
                      } else {
                           console.error(this.name+" status failed=",response.statusCode)
                      }
                  } else {
                      console.error(this.name+" error=",error)
                  }
          

          I get a Bad Request 400 response code, any idea?

          This is the entry in the config.js file
          {
          disabled: false,
          module: ‘MMM-EveryNews’,
          position: ‘top right’,
          config: {
          source: “msnbc”, // any source from https://newsapi.org/sources. // Up to 10 at once
          scroll: true, // description scroll or static
          scrollSpeed: “3”, // if scroll is true
          apiKey: “xxxxxxxxxxxxxxxxxxxxxxxx”, // free API key from https://newsapi.org/register
          useHeader: true, // False if you don’t want a header
          header: “Over 30,000 News Sources!”, // Any text you want. useHeader must be true
          maxWidth: “350px”,
          animationSpeed: 3000, // fade speed
          rotateInterval: 5 * 60 * 1000,
          }
          },

          I tested the API key on NewsAPI site and it worked fine

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

            @JeanMichelC no… my guess is that the api has changed and the module has not been updated.
            the author is currently not available.

            but, see the comments in issue 5

            https://github.com/mykle1/MMM-EveryNews/issues/5

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • J Offline
              JeanMichelC
              last edited by

              Thanks Sam for pointing me to issue#6, I applied the changed and now it’s working! I really appreciate your help.

              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