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 2.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.
    • earnestrichardsE Offline
      earnestrichards
      last edited by

      Has anyone found a news feed for NPR?

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

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

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • earnestrichardsE Offline
              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 Offline
                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

                How to add modules

                learning how to use browser developers window for css changes

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

                  yes… I had it uncommented and then the crash…

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    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

                    How to add modules

                    learning how to use browser developers window for css changes

                    earnestrichardsE 1 Reply Last reply Reply Quote 1
                    • earnestrichardsE Offline
                      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

                      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