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-NewsAPI

    Scheduled Pinned Locked Moved Utilities
    103 Posts 10 Posters 78.9k Views 8 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.
    • mumblebajM Offline
      mumblebaj Module Developer
      last edited by

      My First module, so take it easy :smiling_face_with_halo:

      After my mirror crashed a few weeks ago I was looking for the MMM-News module created by bugsounet but could not find it anywhere. I have since learned that he has deprecated the module and have decided to create my.

      The module provides a news feed from newsapi.org.

      2d926a2f-b6e8-4a69-b96f-a4bdac1760bb-image.png

      There are various config options and these have been detailed on my MMM-NewsAPI github page. Read the config options carefully as there are restrictions on which options can be used with which. You can also test your options on the newsapi.org prior to making your config in the config.js I have provided two basic samples.

      Please let me know if you have issues with it and I will assist where I can as soon as I can.

      Please note, as I am in South Africa and with the time differences it may take a few hours before I get to your queries.

      Check out my modules at: https://github.com/mumblebaj?tab=repositories
      Check my blog-post: https://mumblebaj.xyz/
      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

      bugsounetB 1 Reply Last reply Reply Quote 2
      • bugsounetB Offline
        bugsounet Banned @mumblebaj
        last edited by

        @mumblebaj if you want MMM-News, just tell me, I offer it!
        I can transfert it to your git hub account ;)

        mumblebajM 1 Reply Last reply Reply Quote 0
        • mumblebajM Offline
          mumblebaj Module Developer @bugsounet
          last edited by

          @bugsounet Thanks bugsounet. I would never be able to maintain your very awesome module. The added functionality that you offer in yours is amazing and I would probably just end up messing up you great work. :pensive_face:

          Check out my modules at: https://github.com/mumblebaj?tab=repositories
          Check my blog-post: https://mumblebaj.xyz/
          Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

          cowboysdudeC 1 Reply Last reply Reply Quote 0
          • cowboysdudeC Offline
            cowboysdude Module Developer @mumblebaj
            last edited by

            @mumblebaj well it’s how you learn! Just keep a backup of the original and you’ll never go wrong!

            mumblebajM bugsounetB 2 Replies Last reply Reply Quote 0
            • mumblebajM Offline
              mumblebaj Module Developer @cowboysdude
              last edited by

              @cowboysdude Thanks dude. :ok_hand:

              Check out my modules at: https://github.com/mumblebaj?tab=repositories
              Check my blog-post: https://mumblebaj.xyz/
              Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

              1 Reply Last reply Reply Quote 0
              • bugsounetB Offline
                bugsounet Banned @cowboysdude
                last edited by bugsounet

                @cowboysdude that why I want to offer it. Because I will delete it soon

                After if want want it, no problem I can transfert

                mumblebajM 1 Reply Last reply Reply Quote 0
                • mumblebajM Offline
                  mumblebaj Module Developer @bugsounet
                  last edited by

                  @bugsounet Thanks Bugs. You can transfer. I will dig through the code and try to make sense of all your awesome work. I am humbled. :person_bowing:

                  Check out my modules at: https://github.com/mumblebaj?tab=repositories
                  Check my blog-post: https://mumblebaj.xyz/
                  Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                  bugsounetB 1 Reply Last reply Reply Quote 0
                  • bugsounetB Offline
                    bugsounet Banned @mumblebaj
                    last edited by

                    @mumblebaj I have transert it to your github account.
                    Just accept it ;)

                    mumblebajM 1 Reply Last reply Reply Quote 0
                    • mumblebajM Offline
                      mumblebaj Module Developer @bugsounet
                      last edited by

                      @bugsounet I can’t seem to find it nor can I see any notifications for it to accept.

                      Check out my modules at: https://github.com/mumblebaj?tab=repositories
                      Check my blog-post: https://mumblebaj.xyz/
                      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                      swvalentiS 1 Reply Last reply Reply Quote 0
                      • swvalentiS Offline
                        swvalenti Project Sponsor @mumblebaj
                        last edited by

                        @mumblebaj @bugsounet MMM-News still works for me when you say you will delete it does that mean it will stop working? If so NBD I will use my man @mumblebaj module

                        mumblebajM 1 Reply Last reply Reply Quote 0
                        • mumblebajM Offline
                          mumblebaj Module Developer @swvalenti
                          last edited by

                          @swvalenti The module will not stop working.

                          Check out my modules at: https://github.com/mumblebaj?tab=repositories
                          Check my blog-post: https://mumblebaj.xyz/
                          Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                          swvalentiS 1 Reply Last reply Reply Quote 0
                          • swvalentiS Offline
                            swvalenti Project Sponsor @mumblebaj
                            last edited by

                            @mumblebaj Whatever you do don’t update the module, mmm remote control showed update I just did that and it deprecated the module and no longer works!

                            mumblebajM 1 Reply Last reply Reply Quote 0
                            • mumblebajM Offline
                              mumblebaj Module Developer @swvalenti
                              last edited by

                              @swvalenti You can clone the module from here:
                              MMM-News
                              The config should still work.

                              Check out my modules at: https://github.com/mumblebaj?tab=repositories
                              Check my blog-post: https://mumblebaj.xyz/
                              Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                              swvalentiS 1 Reply Last reply Reply Quote 0
                              • swvalentiS Offline
                                swvalenti Project Sponsor @mumblebaj
                                last edited by

                                @mumblebaj gave yours a try but get this error?

                                MMM-NewsAPI.js:129 Uncaught TypeError: Cannot read property 'sourceId' of undefined
                                    at Class.draw (MMM-NewsAPI.js:129)
                                    at Class.socketNotificationReceived (MMM-NewsAPI.js:96)
                                    at module.js:245
                                    at Socket.<anonymous> (socketclient.js:38)
                                    at Socket../node_modules/component-emitter/index.js.Emitter.emit (index.js:145)
                                    at Socket.emit (typed-events.js:46)
                                    at Socket.emitEvent (socket.js:263)
                                    at Socket.onevent (socket.js:250)
                                    at Socket.MMSocket.socket.onevent (socketclient.js:32)
                                    at Socket.onpacket (socket.js:214)
                                

                                Config

                                                module: "MMM-NewsAPI",
                                                header: "news",
                                                position: "bottom_bar",
                                                config: {
                                                        apiKey: "super duper secret",
                                                        type: "horizontal",
                                                        choice: "headlines",
                                                        pageSize: 9,
                                                        className: "NEWS",
                                                        drawInterval: 1000*30,
                                                        templateFile: "template.html",
                                                        fetchInterval: 1000*60*60,
                                                        query: {
                                                                country: "us",
                                                                //category: "",
                                                                //q: "covid",
                                                                //qInTitle: "",
                                                                sources: "Fox News",
                                                                domains: "foxnews.com",
                                                                //excludeDomains: "",
                                                                language: "en"
                                                        },
                                                }
                                },
                                
                                mumblebajM 1 Reply Last reply Reply Quote 0
                                • mumblebajM Offline
                                  mumblebaj Module Developer @swvalenti
                                  last edited by mumblebaj

                                  @swvalenti said in MMM-NewsAPI:
                                  The issue is with sources “Fox News”. That is not a valid source. Remove it and it should work fine with just the domain of foxnews.com

                                  Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                  Check my blog-post: https://mumblebaj.xyz/
                                  Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                                  swvalentiS 1 Reply Last reply Reply Quote 0
                                  • swvalentiS Offline
                                    swvalenti Project Sponsor @mumblebaj
                                    last edited by

                                    @mumblebaj said in MMM-NewsAPI:

                                    @swvalenti said in MMM-NewsAPI:
                                    The issue is with sources “Fox News”. That is not a valid source. Remove it and it should work fine with just the domain of foxnews.com

                                    Understood, works great now. Nice module good job!!!

                                    bugsounetB 1 Reply Last reply Reply Quote 0
                                    • bugsounetB Offline
                                      bugsounet Banned @swvalenti
                                      last edited by

                                      @mumblebaj, perfect, that i see Transfert is now done ;)

                                      Happy coding,
                                      @bugsounet

                                      mumblebajM 1 Reply Last reply Reply Quote 0
                                      • mumblebajM Offline
                                        mumblebaj Module Developer @bugsounet
                                        last edited by

                                        @bugsounet Thank you. I have received.

                                        Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                        Check my blog-post: https://mumblebaj.xyz/
                                        Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                                        swvalentiS 1 Reply Last reply Reply Quote 0
                                        • swvalentiS Offline
                                          swvalenti Project Sponsor @mumblebaj
                                          last edited by

                                          @mumblebaj Module stopped working you working on it?

                                          swvalentiS 1 Reply Last reply Reply Quote 0
                                          • swvalentiS Offline
                                            swvalenti Project Sponsor @swvalenti
                                            last edited by

                                            No errors just doesn’t show in region

                                            mumblebajM S 2 Replies 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
                                            • 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