• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Newsfeeder is going way to fast when showing news

Scheduled Pinned Locked Moved Unsolved Troubleshooting
27 Posts 10 Posters 6.0k Views 11 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.
  • F Offline
    fribse
    last edited by Aug 6, 2021, 12:15 PM

    I’ve set up the delay to 30000, so it should take it’s time between rolling the news.
    It’s the original news module, with an added QR code module.
    It fetches news from some RSS feeds.
    I’ve tried rebooting the pi, and also just restarting MM.
    It has about 12 GB available space, so that’s not the problem.
    What on earth is suddenly going on? This has worked for at least a year?
    Everything is fully updated on the modules and core.

    S 1 Reply Last reply Aug 6, 2021, 12:48 PM Reply Quote 1
    • S Away
      sdetweil @fribse
      last edited by Aug 6, 2021, 12:48 PM

      @fribse can u show the config for newsreader?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Aug 6, 2021, 1:59 PM Reply Quote 0
      • M Offline
        mumblebaj Module Developer @sdetweil
        last edited by Aug 6, 2021, 1:59 PM

        @sdetweil I saw the same behavior yesterday. It scrolls through almost immediately even though my updateInterval is set to 40 seconds.

                                    showSourceTitle: true,
                                    showPublishDate: true,
                                    broadcastNewsFeeds: true,
                                    broadcastNewsUpdates: true,
                                    showDescription: true,
                                    updateInterval: 40 * 1000,
                                    reloadInterval: 60 * 60 * 1000
        

        Will check it on my dev machine now as well.

        Check out my modules at: https://github.com/mumblebaj?tab=repositories

        S 1 Reply Last reply Aug 8, 2021, 11:54 AM Reply Quote 0
        • S Offline
          sek_is_back
          last edited by Aug 8, 2021, 7:12 AM

          i can confirm this, same on my side

          				feeds: [
          					{
          						title: "Tagesschau",
          						url: "http://www.tagesschau.de/xml/rss2"
          					}
          				],
          				showSourceTitle: false,
          				showDescription: true,
          				ignoreOldItems: true,
          				ignoreOlderThan: 86400000,
          				updateInterval: 18000,
          				showPublishDate: false
          
          
          1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @mumblebaj
            last edited by sdetweil Aug 8, 2021, 11:55 AM Aug 8, 2021, 11:54 AM

            @mumblebaj @sek_is_back @fribse the animationSpeed config option is defaulted to 2.5 seconds. (2500 ms)

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            F M 2 Replies Last reply Aug 11, 2021, 6:40 PM Reply Quote 0
            • F Offline
              fribse @sdetweil
              last edited by fribse Aug 11, 2021, 6:42 PM Aug 11, 2021, 6:40 PM

              @sdetweil Interesting

              My config looks like this

              {
                    module: "newsfeed",
                    position: "bottom_bar",
                    classes: "day_schedule",
                    config: {
                      feeds: [
                        {
                          title: "Ekstra Bladet",
                          url: "https://ekstrabladet.dk/rssfeed/all/"
                        },
                        {
                          title: "DR nyheder",
                          url: "https://www.dr.dk/nyheder/service/feeds/allenyheder"
                        },
                        {
                          title: "BT",
                          url: "https://www.bt.dk/bt/seneste/rss"
                        },
                        {
                          title: "Berlingske.dk",
                          url: "https://www.berlingske.dk/content/3/rss"
                        },
                        {
                          title: "TV2 Øst",
                          url: "https://www.tv2east.dk/rss"
                        }
                      ],
                      updateInterval: 30000,
                      showSourceTitle: true,
                      showPublishDate: true,
                      broadcastNewsFeeds: true,
                      broadcastNewsUpdates: true
                    }
                  },
              

              And it hasn’t changed for years.
              animationSpeed, isn’t that for the transition?
              That’s not what’s happening here, it goes through all the news in a minute or so.

              S 1 Reply Last reply Aug 11, 2021, 7:40 PM Reply Quote 0
              • M Offline
                mumblebaj Module Developer @sdetweil
                last edited by Aug 11, 2021, 7:07 PM

                @sdetweil I think there may be an issue though. The MagicMirror Documentation says the following:

                The newsfeed module is one of the default modules of the MagicMirror. This module displays news headlines based on an RSS feed. Scrolling through news headlines happens time-based (updateInterval), but can also be controlled by sending news feed specific notifications to the module.
                

                The animationSpeed - Speed of the update animation. Which to me means that the time the news items go from one to the other.

                However, the news items scroll through and seem to be ignoring the updateInterval setting, almost like it is using the default animationSpeed as the updateInterval.

                That being said, on my laptop it seems to be behaving fine. I swopped this out on my PI for my MMM-NewsAPI module but before I did it was definitely scrolling through and ignoring the updateInterval.

                The code seems to fine as it references the updateInterval:

                    scheduleUpdateInterval: function () {
                            this.updateDom(this.config.animationSpeed);
                
                            // Broadcast NewsFeed if needed
                            if (this.config.broadcastNewsFeeds) {
                                    this.sendNotification("NEWS_FEED", { items: this.newsItems });
                            }
                
                            this.timer = setInterval(() => {
                                    this.activeItem++;
                                    this.updateDom(this.config.animationSpeed);
                
                                    // Broadcast NewsFeed if needed
                                    if (this.config.broadcastNewsFeeds) {
                                            this.sendNotification("NEWS_FEED", { items: this.newsItems });
                                    }
                            }, this.config.updateInterval);
                    },
                

                Check out my modules at: https://github.com/mumblebaj?tab=repositories

                1 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @fribse
                  last edited by Aug 11, 2021, 7:40 PM

                  @fribse could you do a quick test for me.

                  open the developers window, sources tab,
                  in the left nav,
                  expand modules, default, newsfeed,
                  select the newsfeed.js
                  source will appear on right window

                  scroll the source down, til line 298 is in view, and click the line number so it looks like this

                  Screenshot at 2021-08-11 14-36-57.png

                  then hit f5 (will reload MM)

                  and it will stop at line 298

                  then use you mouse to hover over the this.config.updateInterval

                  like this
                  Screenshot at 2021-08-11 14-35-10.png

                  and then tell me what node/npm version u are using

                  u can do the debug using chrome, firefox or edge on your pc, if u have address:“0.0.0.0” and ipWhitelist:[] set in the mm config on the pi.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fribse
                    last edited by Aug 13, 2021, 8:07 PM

                    Like this:
                    c6d12504-e82f-47aa-a7d2-8f93b35b736a-image.png
                    ?

                    pi@bathmirror:~ $ npm --version
                    7.6.3

                    S 1 Reply Last reply Aug 13, 2021, 8:26 PM Reply Quote 0
                    • S Away
                      sdetweil @fribse
                      last edited by Aug 13, 2021, 8:26 PM

                      @fribse yes, thanks… so its got the right number for interval.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      F 1 Reply Last reply Aug 15, 2021, 4:58 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        7/27
                        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