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.

    default newsfeed and prohibitedWords

    Scheduled Pinned Locked Moved Troubleshooting
    3 Posts 2 Posters 1.4k 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.
    • twosquirrelsT Offline
      twosquirrels
      last edited by

      I’m truly sick of seeing “Trump” appear in my news headlines, unless it’s to notify me that he’s being impeached. It makes me not want to look at my magic mirror.

      I’m not sure how to add prohibitedWords to my config to make him disappear. Any suggestions? Here’s what I have now. It works, but anywhere I try to put prohibitedWords: ‘trump’ , it breaks the module or magic mirror won’t load.

      {
                      module: "newsfeed",
                      position: "bottom_bar", // This can be any of the regions. Best results in center regions.
                      config: {
                              // The config property is optional.
                              // If no config is set, an example calendar is shown.
                              // See 'Configuration options' for more information.
      
                              feeds: [
                                      {
                                              title: "New York Times",
                                              url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml",
                                      },
                                      {
                                              title: "The Verge",
                                              url: "https://www.theverge.com/rss/index.xml",
                                      },
                              ],
                      }
              },
      
      
      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @twosquirrels
        last edited by

        @twosquirrels it has to be an array, see the documentation

        {
                        module: "newsfeed",
                        position: "bottom_bar",
                        config: {
                                prohibitedWords: ['trump'],
                                feeds: [
                                        {
                                                title: "New York Times",
                                                url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml",
                                        },
                                        {
                                                title: "The Verge",
                                                url: "https://www.theverge.com/rss/index.xml",
                                        },
                                ],
                        }
                },
        

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

        1 Reply Last reply Reply Quote 1
        • twosquirrelsT Offline
          twosquirrels
          last edited by

          Thank you! My news feed is now Chump free!

          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 Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy