Hi,
How do you use this module? Do you need Alexa?
What changes are required to make it work?
Thank you,
JM
Hi,
How do you use this module? Do you need Alexa?
What changes are required to make it work?
Thank you,
JM
Thanks Sam for pointing me to issue#6, I applied the changed and now it’s working! I really appreciate your help.
@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
I was looking in the wrong folder, I found it in the MMM-EveryNews folder, making changes now
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);
}
};
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.