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

Scheduled Pinned Locked Moved Utilities
103 Posts 10 Posters 26.5k Views
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.
  • M
    mumblebaj Module Developer @swvalenti
    last edited by Aug 14, 2021, 12:54 PM

    @swvalenti The module will not stop working.

    Check out my modules at: https://github.com/mumblebaj?tab=repositories

    S 1 Reply Last reply Aug 14, 2021, 1:01 PM Reply Quote 0
    • S
      swvalenti Project Sponsor @mumblebaj
      last edited by Aug 14, 2021, 1:01 PM

      @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!

      M 1 Reply Last reply Aug 14, 2021, 1:04 PM Reply Quote 0
      • M
        mumblebaj Module Developer @swvalenti
        last edited by Aug 14, 2021, 1:04 PM

        @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

        S 1 Reply Last reply Aug 14, 2021, 1:43 PM Reply Quote 0
        • S
          swvalenti Project Sponsor @mumblebaj
          last edited by Aug 14, 2021, 1:43 PM

          @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"
                                  },
                          }
          },
          
          M 1 Reply Last reply Aug 14, 2021, 2:02 PM Reply Quote 0
          • M
            mumblebaj Module Developer @swvalenti
            last edited by mumblebaj Aug 14, 2021, 2:05 PM Aug 14, 2021, 2:02 PM

            @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

            S 1 Reply Last reply Aug 14, 2021, 2:15 PM Reply Quote 0
            • S
              swvalenti Project Sponsor @mumblebaj
              last edited by Aug 14, 2021, 2:15 PM

              @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!!!

              B 1 Reply Last reply Aug 14, 2021, 6:46 PM Reply Quote 0
              • B
                bugsounet @swvalenti
                last edited by Aug 14, 2021, 6:46 PM

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

                Happy coding,
                @bugsounet

                MMM-GoogleAssistant and associated plugin creator
                Website: wiki.bugsounet.fr

                M 1 Reply Last reply Aug 14, 2021, 7:31 PM Reply Quote 0
                • M
                  mumblebaj Module Developer @bugsounet
                  last edited by Aug 14, 2021, 7:31 PM

                  @bugsounet Thank you. I have received.

                  Check out my modules at: https://github.com/mumblebaj?tab=repositories

                  S 1 Reply Last reply Aug 19, 2021, 11:56 AM Reply Quote 0
                  • S
                    swvalenti Project Sponsor @mumblebaj
                    last edited by Aug 19, 2021, 11:56 AM

                    @mumblebaj Module stopped working you working on it?

                    S 1 Reply Last reply Aug 19, 2021, 4:28 PM Reply Quote 0
                    • S
                      swvalenti Project Sponsor @swvalenti
                      last edited by Aug 19, 2021, 4:28 PM

                      No errors just doesn’t show in region

                      M S 2 Replies Last reply Aug 19, 2021, 4:53 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 10
                      • 11
                      • 2 / 11
                      2 / 11
                      • First post
                        11/103
                        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
                        This website uses cookies to ensure you get the best experience on our website. Learn More