Read the statement by Michael Teeuw here.
Newsfeed not displaying on MM
-
You either did not copy the entire URL for the 2nd feed when posting it to the forum, or you didn’t copy the entire URL when posting to your
config.js
file. The HuffPo URL in your config is missing the XML extension and closing quotation marks. -
@bhepler The end of the URL is there, you just have to scroll across due to its length. I wish that was the problem haha
-
@redkittens The end of the URL is there from the default
config.js
but it’s not in the 1st one. Scrolling right isn’t making it appear for me.The other thing I noticed was that you apparently started copying from your config a couple lines early, but I presume those close brackets are continuations from other module configs.
The default feeds from the module are there in case you don’t have your own RSS feeds, right? So you can test out the module by deleting the feeds from your configuration. So try it out. Change your
config.js
entry for the newsfeed module to only read as so:{ module: "newsfeed", position: "bottom_bar", },
You should get two news feeds in the module. If it works, add the config & feed parameters and make sure it still works.
-
@bhepler Oh my bad, that was a bad copy and paste and I’ve edited it for clarity. I just changed my config.js entry to what you recommended and unfortunately still no display. There must be an error in my newsfeed.js file. Thanks for your suggestion though
-
@redkittens - In general, you should not be modifying the module javascript files.
newsfeed.js
,clock.js
, etc work pretty well and you just need to modify yourconfig.js
to configure the modules correctly.For example, you’re trying to modify the newsfeeds that are used by the newsfeed module, yes? Any configuration that you put in the
config.js
will override the defaults in thenewsfeed.js
module. You don’t need to overwrite the default values because the Magic Mirror framework will do it for you.If you need to add functionality to a module, then it’s a different story. But in my experience about 85% of what users need can be handled with careful editing of the
config.js
file.