MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. JeanMichelC
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    JeanMichelC

    @JeanMichelC

    0
    Reputation
    1
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    JeanMichelC Unfollow Follow

    Latest posts made by JeanMichelC

    • RE: MMM-AI

      Hi,
      How do you use this module? Do you need Alexa?
      What changes are required to make it work?

      Thank you,
      JM

      posted in Fun & Games
      J
      JeanMichelC
    • RE: MMM-EveryNews is not loading anything

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

      posted in Troubleshooting
      J
      JeanMichelC
    • RE: MMM-EveryNews is not loading anything

      @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

      posted in Troubleshooting
      J
      JeanMichelC
    • RE: MMM-EveryNews is not loading anything

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

      posted in Troubleshooting
      J
      JeanMichelC
    • RE: MMM-EveryNews is not loading anything

      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);
      }
      };

      posted in Troubleshooting
      J
      JeanMichelC
    • MMM-EveryNews is not loading anything

      Re: MMM-EveryNews is not loading anything
      I disabled all modules to try to debug this issue but still could not get any news loaded and no errors using rpm start dev.
      It says “Anyone’s presents…”
      I don’t have any Google modules loaded.

      posted in Troubleshooting
      J
      JeanMichelC