• 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.
  • S Offline
    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 Offline
        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 Offline
            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
                8/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