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

MMM-News

Scheduled Pinned Locked Moved Utilities
55 Posts 15 Posters 35.8k Views 14 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.
  • ? Offline
    A Former User
    last edited by Mar 21, 2019, 10:53 AM

    UPDATED

    • Added : Reader mode. article details without adv. or any other annoying things.

    Screenshot

    1 Reply Last reply Reply Quote 1
    • M Offline
      mrdenmark
      last edited by Nov 16, 2019, 2:13 AM

      does anyone know if BBC is a compatible source for this module?
      it works as advertised with all other news sources i’m interested in but from the bbc it receives nothing.
      if for some reason the bbc can’t be used what other british sources of news/sport are people using?

      ? 1 Reply Last reply Nov 17, 2019, 2:36 PM Reply Quote 0
      • ? Offline
        A Former User @mrdenmark
        last edited by Nov 17, 2019, 2:36 PM

        @mrdenmark
        0_1574001354168_d39a5dca-ac3b-4958-a1b8-a4775e9e74cd-image.png
        use bbc-news as source.

        1 Reply Last reply Reply Quote 0
        • D Offline
          dankerthrone
          last edited by Nov 29, 2019, 4:11 PM

          Hey, I’m getting this error message:

          [NEWS] Error :  https://newsapi.org/v2/top-headlines?pageSize=20&apiKey=XXX result.code:Required parameters are missing. Please set any of the following parameters and try again: sources, q, language, country, category.
          
          

          although I think have that configured correctly:

          {
          			module: "MMM-News",
          			position: "bottom_right",
          			config: {
          					apiKey : "XXX",
          					type: "vertical",
          					query : [
          						  {
          							language: "de"
          						  }
          						  ],
          					items: 20,
          					timeFormat: "relative",
          					endpoint :  "https://newsapi.org/v2/top-headlines",
          					scanInterval: 1000*60*10, // This will be automatically recalculated by number of queries to avoid query quota limit. This could be minimum interval.
          					templateFile: "template.html"
          					
          					}
          		},
          

          Any help is greatly appreciated :)

          ? 1 Reply Last reply Nov 30, 2019, 2:32 PM Reply Quote 0
          • ? Offline
            A Former User @dankerthrone
            last edited by Nov 30, 2019, 2:32 PM

            @dankerthrone
            change language to country

            1 Reply Last reply Reply Quote 0
            • U Offline
              uros76
              last edited by May 22, 2020, 11:01 AM

              Hi. Is it possible to have two different queries of news, each displayed in a separate horizontal position?

              My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

              C 1 Reply Last reply May 23, 2020, 12:12 PM Reply Quote 0
              • C Offline
                cowboysdude Module Developer @uros76
                last edited by cowboysdude May 23, 2020, 12:15 PM May 23, 2020, 12:12 PM

                @uros76 sure it is… see picture below…

                news.PNG

                Just using the stock newsfeed in MM…[I DETEST CNN but needed a quick example]
                You can then use them in the same region or put one each in different regions.
                The example is both using bottom_bar but I did try and put one in bottom_bar the other in middle_center and still works… ;)

                [Just remember IF you copy the below code and put it in your config.js it will give you an error… you have to change the quotes “” or ‘’ because they do NOT copy correctly].

                {
                			module: 'newsfeed',
                			position: 'bottom_bar',
                			config: {
                				feeds: [
                					{
                						title: "CNN",
                						url: "http://rss.cnn.com/rss/cnn_latest.rss"
                					}
                				],
                				showSourceTitle: true,
                				showPublishDate: true
                			}
                		},
                		{
                			module: 'newsfeed',
                			position: 'bottom_bar',
                			config: {
                				feeds: [
                					{
                						title: "New York Times",
                						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                					}
                				],
                				showSourceTitle: true,
                				showPublishDate: true
                			}
                		},
                
                1 Reply Last reply Reply Quote 0
                • U Offline
                  uros76
                  last edited by May 23, 2020, 12:34 PM

                  Thanks @cowboysdude for the tips. I was more thinking of having two instances of MMM-News module because I like its ability to show a small pic. But multiple uses of MMM-News doesn’t seem to work :/.

                  Instead, I combined two modules and now have two different feeds working, the second one just without a picture.

                  7b2f4c86-139e-4a85-ba91-173453ddd5c7-image.png

                  My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

                  C 1 Reply Last reply May 23, 2020, 12:36 PM Reply Quote 0
                  • C Offline
                    cowboysdude Module Developer @uros76
                    last edited by cowboysdude May 23, 2020, 12:37 PM May 23, 2020, 12:36 PM

                    @uros76 said in MMM-News:

                    MMM-News

                    Oh I see. I don’t have an api key for that so I can’t really test that one ;) I know you’re setup is not what you wanted but not really sure why running 2 of them is not working without being able to test it.

                    Here’s an idea… setup up 2 of them again and when you run your mirror run it in ‘npm start dev’ mode and see if you get any errors in the console.

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by A Former User May 23, 2020, 12:55 PM May 23, 2020, 12:52 PM

                      not so easy.

                      MM legacy structure doesn’t consider multiple instances of node_helper. One module should have just one node_helper and vice versa. So, the cloning instance of the module needs some manual fixing. Some simple modules could be clonable easily(like the original newsfeed module), but not this module’s case.

                      Another point is, to get news individually through cloned modules(If you’ve done somehow), it will consume system resources twice. and API quota also will be consumed doubly. Hmmm. it is not so beautiful.

                      A reasonable approach would be, Making a serving-slave process(which access the news API) by spawn/fork from one node_helper of the module. then other cloned modules would connect to the slave to get their own needs.

                      Or make another front-end module, which would just pull data from the original module.

                      Anyway, I didn’t make this module for that purpose. And under the current MM structure, to do so is not so easy.

                      Finally, I’m not supporting this module anymore. So, sorry. not possible by me.

                      S 1 Reply Last reply May 23, 2020, 1:06 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 1 / 6
                      • 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