• 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.

Newsfeed "ignoreOldItems" does not work

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 2.2k 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 Jul 28, 2017, 6:30 AM Jul 28, 2017, 6:29 AM

    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
                      }
             }
    
    S 1 Reply Last reply Jul 28, 2017, 10:16 AM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @StrikeBack83
      last edited by Jul 28, 2017, 10:16 AM

      @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 Jul 28, 2017, 5:19 PM Jul 28, 2017, 12:09 PM

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