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.

    Newsfeed "ignoreOldItems" does not work

    Scheduled Pinned Locked Moved Troubleshooting
    3 Posts 2 Posters 2.3k Views 3 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.
    • S Offline
      StrikeBack83
      last edited by StrikeBack83

      Hi,
      my config says to ignore items older than 14 hours (50400000ms),
      but that does not work. I still see news older than this.

      Heres my newsfeed module:

               {
                module: "newsfeed",
                position: "bottom_bar",
                showSourceTitle: true,
                showPublishDate: true,
                config: {
                         feeds: [
                                {
                                 title: "Kurier",
                                 url: "http://kurier.at/xml/rssd"
                                },
                                {
                                 title: "Der Standard",
                                 url: "http://derStandard.at/?page=rss&ressort=Seite1"
                                },
                                {
                                 title: "Giga",
                                 url: "http://www.giga.de/feed/"
                                }
                                ],
                         ignoreOldItems: "true",
                         ignoreOlderThan: 50400000,
                         updateInterval: 20000
                        }
               }
      
      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @StrikeBack83
        last edited by

        @StrikeBack83 I just checked your config and it seems to work fine, as the oldest news I got was 12.5 hours old.

        Though there are some small issues with your config:

          ...
          position: "bottom_bar",
          showSourceTitle: true,
          showPublishDate: true,
          config: {
            feeds: [
              ...
        

        showSourceTitle and showPublishDate are config options and have to be moved into the config section like

        ...
          position: "bottom_bar",
          config: {
            showSourceTitle: true,
            showPublishDate: true,
            feeds: [
              ...
        

        But why did they work then? Because their default value is set to true so you don’t have to specify it at all like

        ...
          position: "bottom_bar",
          config: {
            feeds: [
              ...
        

        Another issue is ignoreOldItems. A boolean (true and false) have to be defined without quotes, otherwise it will be always true. "true" => true and "false" => true

          ],
          ignoreOldItems: true,
          ignoreOlderThan: 50400000,
        

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 3
        • S Offline
          StrikeBack83
          last edited by StrikeBack83

          Hi,
          If

          showSourceTitle: true,
          showPublishDate: true,
          

          is true by default i’m going to delete it completely.
          I’ll try the “ignoreOldItems: true” without quote marks when i get home!
          Thanks!

          Edit: Seems like it’s working at the moment. Obviously it was the “true” in quots.

          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 / 1
          • 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