MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Help getting rid of old news

    Troubleshooting
    2
    4
    52
    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.
    • E
      Extra last edited by

      Hello,

      I’m wondering if anyone can help me fix why the news is showing headlines older than 2 days when I have the config statement that states ignore news older than 2 days. Did I implement it wrong? Am I missing something?

      Thanks in advance.

      {
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "CBC Windsor News",
      						url: "https://www.cbc.ca/cmlink/rss-canada-windsor"
      
      					},
      					{
      						title: "Windsor Star News",
      						url: "http://windsorstar.com/category/news/local-news/feed"
      
      					},
      					{
      						title: "CBC Top Stories News",
      						url: "https://www.cbc.ca/cmlink/rss-topstories"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true,
      				broadcastNewsFeeds: true,
      				broadcastNewsUpdates: true,
      				ignoreOlderThan: 172800000 //Ignore news older than 2 days (2days->172800000ms)
      			}
      		},
      
      T 1 Reply Last reply Reply Quote 0
      • T
        thad @Extra last edited by

        @extra
        I was just playing with this. I think you need to add:
        ignoreOldItems: true

        Thad

        E 1 Reply Last reply Reply Quote 0
        • E
          Extra last edited by

          @thad That makes sense.
          It works now, thanks.

          1 Reply Last reply Reply Quote 0
          • E
            Extra @thad last edited by Extra

            @thad Edit: I just checked it, and a 4 day old headline was displayed.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy