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.

    Rss for news feeds?

    Scheduled Pinned Locked Moved Troubleshooting
    13 Posts 6 Posters 25.8k Views 5 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.
    • D Offline
      deadherring
      last edited by

      Hey all,

      I’m trying to understand the RSS feeds that will and wont work in the news feed. Here’s one that I got working:

      title: “ESPN”,
      url: “http://www.espn.com/espn/rss/news”

      and here are several that do not work (I get the no config file message when I start MM):

      {
      title: “Reuters”,
      url: “http://feeds.reuters.com/reuters/topNews”
      },
      {
      title: "Reuters Sports",
      url: “http://feeds.reuters.com/reuters/sportsNews”

      Google News
      url: “https://news.google.com/output=rss”

      Can someone help me understand which feeds will and will not work? Also, what is the limit on the number of news feeds I can configure?

      Thanks,

      Nathan

      bheplerB 1 Reply Last reply Reply Quote 0
      • D Offline
        deadherring
        last edited by

        Some more that don’t work:
        title: “Yahoo News”,
        url: “http://news.yahoo.com/rss”

        title: "Yahoo MLB",
        url: “http://sports.yahoo.com/mlb/rss.xml”

        strawberry 3.141S 1 Reply Last reply Reply Quote 1
        • S Offline
          slickric
          last edited by

          ABC news works. “http://abc.net.au/news/feed/51120/rss.xml”

          1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer @deadherring
            last edited by

            @deadherring can you post your config.js part of the newsfeed section completely, I get the no config file message when I start MM this is probably to a syntax error and there shouldn’t be a limit of newsfedd that can be added

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

            1 Reply Last reply Reply Quote 0
            • D Offline
              deadherring
              last edited by

              Here’s whats configured that currently IS working:

              {
              module: ‘newsfeed’,
              position: ‘bottom_bar’,
              config: {
              feeds: [
              {
              title: “New York Times”,
              url: “http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml”
              },
              {
              title: “CNN”,
              url: “http://rss.cnn.com/rss/cnn_topstories.rss”
              },

              title: “Jerusalem Post”
              url: “http://www.jpost.com/Rss/RssFeedsFrontPage.aspx”
              },

              {
              title: “ESPN”,
              url: “http://www.espn.com/espn/rss/news”
              },
              {
              title: “Israel National News”,
              url: “http://www.israelnationalnews.com/RSS.aspx”
              },

              			],
              			showSourceTitle: true,
              			showPublishDate: true
              		}
              	},
              
              ]
              

              };

              Here’s what I tried to get working:

              {
              module: ‘newsfeed’,
              position: ‘bottom_bar’,
              config: {
              feeds: [
              {
              title: “New York Times”,
              url: “http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml”
              },
              {
              title: “CNN”,
              url: “http://rss.cnn.com/rss/cnn_topstories.rss”
              },

              {
              title: “Yahoo News”,
              url: “http://news.yahoo.com/rss”
              },
              {
              title: “ESPN”,
              url: “http://www.espn.com/espn/rss/news”
              },

              {
              title: “ESPN Baseball”,
              url: “http://www.espn.com/espn/rss/mlb/news”
              },

              {
              title: “Israel National News”,
              url: “http://israelnationalnews.com/RSS.aspx”
              },
              {
              title: “Ynet Breaking News”,
              url: “http://www.ynet.co.il/Integration/StoryRss3254.xml”
              },
              {
              title: “Reuters”,
              url: “http://feeds.reuters.com/reuters/topNews”
              },

              {
              title: “Reuters Sports”,
              url: “http://feeds.reuters.com/reuters/sportsNews”
              },

              {
              title: “Google News”,
              url: “https://news.google.com/output=rss”
              },

              			],
              			showSourceTitle: true,
              			showPublishDate: true
              		}
              	},
              
              ]
              

              };

              Note, that I also tried to enter each one of the above feeds individually in the config file and restarted MM and got the no config file message for each. The only feeds I could get working are the ones in the working section I described above.

              I feel like there must be something I am missing? Does the version of MM I am using matter? I’m not sure the command to tell which version I have, I searched the forum but couldn’t find anything.

              Thanks,

              Nathan

              strawberry 3.141S 1 Reply Last reply Reply Quote 0
              • bheplerB Offline
                bhepler Module Developer @deadherring
                last edited by bhepler

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • bheplerB Offline
                  bhepler Module Developer
                  last edited by

                  Try this for a Google news url: https://news.google.com/news?cf=all&hl=en&pz=1&ned=us&output=rss

                  1 Reply Last reply Reply Quote 0
                  • strawberry 3.141S Offline
                    strawberry 3.141 Project Sponsor Module Developer @deadherring
                    last edited by

                    @deadherring you must have just used the wrong syntax i tested a couple and they all worked for me, make sure you only use one of those two quotes ' or " another will lead to wrong syntax

                    https://imgur.com/a/cQ0lN

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

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      deadherring
                      last edited by

                      Hey guys,

                      Thanks a lot for the responses. Here’s what I think might be happening:

                      The first three I configured that I got working

                      title: “ESPN”,
                      url: “http://www.espn.com/espn/rss/news”

                      and one from CNN, I configured on the pi itself, modifying the config file with a mouse and keyboard on the pi. The rest that I shared that weren’t working, modified the config file on my mac via text edit and then ftp’d the file up to the pi. I suspect that the mac might be saving the file in a way the pi does not like, or, as was suggested, inputting the " s in a way the pi does not like. At least, that’s my theory right now, I need to test when I get home.

                      This is the procedure I am following to edit config.js on my mac:

                      1. Two-fingered click on config.js. Open with Text Edit
                      2. Modify the file
                      3. Save as: config.js. I leave the default plain text encoding (UTF-8)

                      Is that the right procedure? My MM is installed in the wall in my bathroom and it would be a huge pain to have to connect a mouse and keyboard to it every time I want to modify anything. I suppose I can ssh into it and modify the config file via nano too. I don’t know if that solves the problem, I have to try later.

                      Thanks again,

                      Nathan

                      KirAsh4K bheplerB 2 Replies Last reply Reply Quote 0
                      • KirAsh4K Offline
                        KirAsh4 Moderator @deadherring
                        last edited by

                        @deadherring said in Rss for news feeds?:

                        My MM is installed in the wall in my bathroom and it would be a huge pain to have to connect a mouse and keyboard to it every time I want to modify anything. I suppose I can ssh into it and modify the config file via nano too. I don’t know if that solves the problem, I have to try later.

                        Either use SSH to get on the rpi, or, if you must, get a wireless mouse/keyboard combo. Those things are cheap on eBay.

                        A Life? Cool! Where can I download one of those from?

                        1 Reply Last reply Reply Quote 0
                        • bheplerB Offline
                          bhepler Module Developer @deadherring
                          last edited by bhepler

                          @deadherring said in Rss for news feeds?:

                          and one from CNN, I configured on the pi itself, modifying the config file with a mouse and keyboard on the pi. The rest that I shared that weren’t working, modified the config file on my mac via text edit and then ftp’d the file up to the pi. I suspect that the mac might be saving the file in a way the pi does not like, or, as was suggested, inputting the " s in a way the pi does not like. At least, that’s my theory right now, I need to test when I get home.

                          I think you may be on to something here. Looking back at your complete list of feeds, this is what showed up from your copy & paste:

                          },
                          
                          title: “Jerusalem Post”
                          url: “http://www.jpost.com/Rss/RssFeedsFrontPage.aspx”
                          },
                          

                          Now I don’t know about your Mac, but from here that looks like some unicode characters where there should be UTF-8. The quotes around Jerusalem Post and the URL value are jacked up. I think you’re better off SSH into the Pi and using nano to edit the config.js file.

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            deadherring
                            last edited by

                            Hi,

                            I got this working, the problem was indeed something with the formatting by editing as a text file on my mac. By sshing into the box and modifying the config file directly on the pi I got it working.

                            One question I still have: is there any way to tell the box to drop headlines after 2 days or so? I’m seeing headlines that are 5, 6, 7, 8 days old cycle through and they are no longer news. I’m seeing some new headlines make their way in but the majority are old. I want to have the MM drop headlines when they are stale, say after 2 days time.

                            I see there is a updateInterval tag but I believe that refers to the frequency it checks for new headlines, not when it drops old headlines off. Anyone else having the same issue?

                            Thanks,

                            Nathan

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

                              This post is deleted!
                              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