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 10.6k 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 @sdetweil
      last edited by fribse

      @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 Reply Quote 0
      • mumblebajM Offline
        mumblebaj Module Developer @sdetweil
        last edited by

        @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
        Check my blog-post: https://mumblebaj.xyz/
        Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @fribse
          last edited by

          @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

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

            pi@bathmirror:~ $ npm --version
            7.6.3

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @fribse
              last edited by

              @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 Reply Quote 0
              • F Offline
                fribse @sdetweil
                last edited by

                @sdetweil Currently it shows the news in a proper speed, not sure what starts the problem?

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sek_is_back
                  last edited by sek_is_back

                  i got exact the same strange behavior. one day after my last post, the newsfeed worked like expected for 2 weeks. today the updateInterval seems to be ignored.
                  After a pm2 restart everything is fine again.

                  Now i wrote a cron to restart the Mirror every Night at 2am. will see if this will help.

                  1 Reply Last reply Reply Quote 0
                  • JalibuJ Offline
                    Jalibu Module Developer
                    last edited by Jalibu

                    I can confirm this error. Same on my MagicMirror:
                    It worked for weeks and then out of a sudden the speed changed to turbo-mode during runtime

                    1 Reply Last reply Reply Quote 0
                    • FoziF Offline
                      Fozi Project Sponsor
                      last edited by

                      Same here. This behaviour started about 2 weeks ago. Some times the feeds cycle as expected, but then all of a sudden they rush through.

                      HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

                      F 1 Reply Last reply Reply Quote 0
                      • F Offline
                        fribse @Fozi
                        last edited by

                        Yup, I saw it again this morning, odd.

                        F 1 Reply Last reply Reply Quote 0
                        • F Offline
                          fribse @fribse
                          last edited by fribse

                          @sdetweil Ok, I finally got it tested again.
                          If I go to my computer and open the webpage via remote it shows the right interval (this was what I did earlier), and the news cycles slowly as it should.
                          But on the raspberry pi, it still races through the news.
                          I haven’t restarted the Rpi just to keep the problem, but for me it’s not an easy test on the RPi itself, as the RPi is of course behind the mirror and headless.

                          1 Reply Last reply Reply Quote 0
                          • JalibuJ Offline
                            Jalibu Module Developer
                            last edited by

                            I assume that for some reason some intervals are going crazy during runtime. The problem is gone, if you refresh the page, but it may come again after an uncertain time.

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              sek_is_back
                              last edited by

                              As a workaround, till a solution is found

                              crontab -e
                              @daily sudo reboot

                              this will reboot the pi every night at 00:00 am.

                              swvalentiS 1 Reply Last reply Reply Quote 0
                              • JalibuJ Offline
                                Jalibu Module Developer
                                last edited by

                                @sdetweil I opened a Github issue for that: https://github.com/MichMich/MagicMirror/issues/2638

                                O 1 Reply Last reply Reply Quote 0
                                • O Offline
                                  OberfragGER @Jalibu
                                  last edited by

                                  I got the same issue since 2.16.
                                  I have one image from 2.15 - no problem so far!

                                  The strange thing… first after boot. It working some time like i should… Later… you see the news flashing… so the mirror is mostly black then.

                                  Im using also MM-Pages tho flip to another page every minute.

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sek_is_back
                                    last edited by

                                    updated to develop version from GitHub
                                    https://github.com/MichMich/MagicMirror/tree/develop

                                    everything is fine now, Newsfeeder runs like expected since 1 Week

                                    J I 2 Replies Last reply Reply Quote 0
                                    • J Offline
                                      JoeFranz @sek_is_back
                                      last edited by

                                      @sek_is_back How do I do that?

                                      1 Reply Last reply Reply Quote 0
                                      • swvalentiS Offline
                                        swvalenti Project Sponsor @sek_is_back
                                        last edited by

                                        @sek_is_back said in Newsfeeder is going way to fast when showing news:

                                        As a workaround, till a solution is found

                                        crontab -e
                                        @daily sudo reboot

                                        this will reboot the pi every night at 00:00 am.

                                        No need to reboot the whole pie

                                        0 */5 * * * pm2 restart MagicMirror
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • JalibuJ Offline
                                          Jalibu Module Developer
                                          last edited by

                                          We found the reason for that issue. A fix is merged into the develop branch.

                                          F 1 Reply Last reply Reply Quote 1
                                          • F Offline
                                            fribse @Jalibu
                                            last edited by

                                            @jalibu Weeheee, sounds great! Good work on such an tough problem.

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              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