Navigation

    MagicMirror Forum

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

    default newsfeed and prohibitedWords

    Troubleshooting
    2
    3
    923
    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.
    • twosquirrels
      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.141 1 Reply Last reply Reply Quote 0
      • strawberry 3.141
        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",
                                        },
                                ],
                        }
                },
        
        1 Reply Last reply Reply Quote 1
        • twosquirrels
          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy