Read the statement by Michael Teeuw here.
MMM - NewsFeed Ticker Hangs
-
@sdetweil said in MMM - NewsFeed Ticker Hangs:
@mykle1 fixed
Now I really hope he’s paying attention.
Well done, bro. :thumbsup:
-
@mykle1 also sent him a dm…
-
@sdetweil Okay so the reason it hangs and doesn’t go to other sources is because of what exactly? Sorry just saw this and trying to get up to speed.
I added the max news items where you said I think if I understand correctly (see config file below). I also changed the number to 0 inside the MMM-NewsFeedTicker.js.
Where is the fetcher.js? Can’t find that file.
The module keeps repeating NYT and USA Today and doesn’t move on to BBC or Ars Technica.
{ disabled: false, module: "MMM-NewsFeedTicker", position: "bottom_bar", //classes: "day_scheduler", config: { maxNewsItems: 0, feeds: [ { title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml", customLogo: "NYT_logo_rss_250x40.png" }, { title: "USA Today", url: "http://rssfeeds.usatoday.com/UsatodaycomNation-TopStories", customLogo: "RSS_Syndication_Logo-USATN.png" }, { title: "BBC World News", url: "http://feeds.bbci.co.uk/news/world/rss.xml#", customLogo: "bbc_news_120x60.gif" }, { title: "Ars Technica", url: "http://feeds.arstechnica.com/arstechnica/technology-lab", customLogo: "arstechnica.jpg" } ] } }, -
Try this:
Under the
maxNewsItemsthat you just added to your config entry, add thisupdateInterval: 10 * 60 * 1000,The default is 1 minute, which effectively resets the module back to the beginning of the feeds. This will give it 10 minutes to display the feeds without resetting. Assuming this will work, adjust the time accordingly.
-
@mykle1 Just added it. It brought the ticker to a crawl across the screen. Super slow.
-
@matthewlawson3 never edit the module source file.use config.js to adjust the parma
I loaded the module u referenced, and fetcher.js is in that folder
no idea if it hangs yet. hasn’t for me. -
@sdetweil Ok I made the changes in the fetcher file hopefully. I really am kinda lost though as to what we are trying to do exactly. My main concern is that it goes to all 4 of the sources listed. NYT, USA Today, BBC, and Ars Technica. I haven’t seen Ars Technica at all.
I may just give up and find another good news module.
-
the modules collects all the entries and makes a big list, and then the module sorts them by published date.
there could be over 300 entries… each takes 10 seconds, 3000 seconds is 5 hours,
but the reload interval is 60 minutes, so it will wipe out the list and start over… -
@sdetweil Okay. So looking at it now, I added in Fox News and took out Ars Technica. It shows me Fox News, NYT, USA Today, but doesn’t show BBC which is still in the feeds area.
Also, it seems to reset and replay a headline before it finishes it the first time. -
@matthewlawson3 not my module, just trying to help out.
-
@sdetweil I understand. Sorry.
Any other news modules you recommend? May try another.
-
@matthewlawson3 no idea… I just use the default, only cause its there…
-
@sdetweil Okay. Thanks for trying to help! Much Appreciated.
-
@sdetweil @cowboysdude I am beginning to think I have something wrong with my code or that there is something wrong with my instance of MM. I went back to the default news module and added BBC, USA Today, and Fox News to the list and all I see displaying are BBC headlines. Now when I comment out BBC, Fox News will show. Odd. Can you see if you can see anything in my code? I have no idea what is going on. It has been on for 10 minutes and never leaves BBC.
{ module: "newsfeed", position: "bottom_bar", config: { maxNewsItems: 0, feeds: [ { title: "New York Times", url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml", title: "USA Today", url: "http://rssfeeds.usatoday.com/UsatodaycomNation-TopStories", title: "Fox News", url: "http://feeds.foxnews.com/foxnews/latest", title: "BBC", url: "http://feeds.bbci.co.uk/news/world/rss.xml#" } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true } }, -
@matthewlawson3 remember, it sorts them by published date… I will have to download the feeds and look at the dates
-
@sdetweil so you think perhaps the BBC headlines are the latest?
I commented out the other news ticker we were discussing. Do you think it might be causing an issue? Should I uninstall?
-
@matthewlawson3 no idea
-
this module has a design problem…
a request to get the feed content is started async for each source… so in this case there are 4 fetches going on at once.
when A feed completes in the helper, it sends ALL feeds data (even if none yet) up to the module. (fastest wins)
then second finishes and IT sends up the complete list
and then third
and then forth.and the useful list gets rebuilt over and over…
and it keeps a counter into the list for the next item, BUT the list could get replaced with a smaller number of entries and the code will die… (‘hang’)so the item list gets redone over and over… and over…
-
@sdetweil okay. That’s surprising considering it is the default news module for MM. I’ll find another option.
-
@matthewlawson3 it is not the default. it is an extra. I am talking about MMM-NewsFeedTicker
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login