MagicMirror Forum

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

    News Feed - NPR

    General Discussion
    2
    9
    525
    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.
    • earnestrichards
      earnestrichards last edited by

      Has anyone found a news feed for NPR?

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @earnestrichards last edited by

        @earnestrichards maybe a Google search?

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • earnestrichards
          earnestrichards last edited by

          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 Reply Quote 0
          • S
            sdetweil @earnestrichards last edited by

            @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

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • earnestrichards
              earnestrichards last edited by

              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 Reply Quote 0
              • S
                sdetweil @earnestrichards last edited by

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

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

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • earnestrichards
                  earnestrichards last edited by

                  yes… I had it uncommented and then the crash…

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sdetweil @earnestrichards last edited by

                    @earnestrichards

                    in the commented out section, u are missing a continuation

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

                    Sam

                    Create a working config
                    How to add modules

                    earnestrichards 1 Reply Last reply Reply Quote 1
                    • earnestrichards
                      earnestrichards @sdetweil last edited by

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