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

News Feed - NPR

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 1.2k Views 2 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.
  • E Offline
    earnestrichards
    last edited by Jul 17, 2020, 7:12 PM

    Has anyone found a news feed for NPR?

    S 1 Reply Last reply Jul 17, 2020, 7:48 PM Reply Quote 0
    • S Away
      sdetweil @earnestrichards
      last edited by Jul 17, 2020, 7:48 PM

      @earnestrichards maybe a Google search?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • E Offline
        earnestrichards
        last edited by Jul 17, 2020, 8:45 PM

        I had found this one - http://www.npr.org/rss/rss.php?id=1001 - but it crashes the config file.

        Any feed that ends in .php does the same.

        It may be that I just don’t understand how these things work and need to learn and read more.

        S 1 Reply Last reply Jul 17, 2020, 8:51 PM Reply Quote 0
        • S Away
          sdetweil @earnestrichards
          last edited by Jul 17, 2020, 8:51 PM

          @earnestrichards said in News Feed - NPR:

          http://www.npr.org/rss/rss.php?id=1001

          put that into a browser, it returns the feed in xml
          as for config

          		{
          			module: "newsfeed",
          			position: "bottom_bar",
          			config: {
          				feeds: [
          					{
          						title: "NPR feed",
          						url: "http://www.npr.org/rss/rss.php?id=1001"
          					}
          				],
          				showSourceTitle: true,
          				showPublishDate: true,
          				broadcastNewsFeeds: true,
          				broadcastNewsUpdates: true
          			}
          		},
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • E Offline
            earnestrichards
            last edited by Jul 17, 2020, 9:13 PM

            Grrrr… still no luck…

            Here’s the snippet from my config.js:

            			module: "newsfeed",
            			position: "bottom_bar",
            			config: {
            				feeds: [
            					{
            						title: "New York Times",
            						url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
            					},
            					{
            						title: "CNN",
            						url: "http://rss.cnn.com/rss/cnn_topstories.rss"
            					},
            //					{
            //						title: "NPR"
            //						url: "https://feeds.npr.org/1001/rss.xml"
            //					},
            //					{
            //						title: "Houston Chronicle"
            //						url: "https://www.chron.com/rss/feed/Houston-and-Texas-272.php"
            //					},
            				],
            				showSourceTitle: true,
            				showPublishDate: true,
            				broadcastNewsFeeds: true,
            				broadcastNewsUpdates: true
            			}
            		},
            
            S 1 Reply Last reply Jul 17, 2020, 9:14 PM Reply Quote 0
            • S Away
              sdetweil @earnestrichards
              last edited by Jul 17, 2020, 9:14 PM

              @earnestrichards u have it commented out? // is comment , rest of line ignored

              //					{
              //						title: "NPR"
              //						url: "https://feeds.npr.org/1001/rss.xml"
              //					},
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • E Offline
                earnestrichards
                last edited by Jul 17, 2020, 9:15 PM

                yes… I had it uncommented and then the crash…

                S 1 Reply Last reply Jul 17, 2020, 9:16 PM Reply Quote 0
                • S Away
                  sdetweil @earnestrichards
                  last edited by Jul 17, 2020, 9:16 PM

                  @earnestrichards

                  in the commented out section, u are missing a continuation

                  //					{
                  //						title: "NPR"        < ----- missing comma ,
                  //						url: "https://feeds.npr.org/1001/rss.xml"
                  //					},
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  E 1 Reply Last reply Jul 17, 2020, 9:18 PM Reply Quote 1
                  • E Offline
                    earnestrichards @sdetweil
                    last edited by Jul 17, 2020, 9:18 PM

                    @sdetweil You’re a freaking genius. Thanks. It’s always something ‘silly’ like that… earlier I had a misplaced “{”

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    1 / 1
                    • First post
                      4/9
                      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