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 and BBC

    Scheduled Pinned Locked Moved Solved Troubleshooting
    40 Posts 4 Posters 10.2k Views 4 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 Online
      mumblebaj Module Developer @DarrenHill
      last edited by

      @DarrenHill Hi. I just tested with your config and it works fine for me.

      ff87e1dc-4be8-4c76-98f4-a42e079c0797-image.png

      I look after MMM-News which can be found here

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

      1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @DarrenHill
        last edited by

        @DarrenHill what is your address: in mm config.js?

        have u changed it recently?

        does this module report errors in the console?
        might be a CORS error…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          DarrenHill @sdetweil
          last edited by DarrenHill

          Thanks gents. Nice to know support is still there.

          It was working a while back (several weeks) then it started showing images with #null and no other text, and now it doesn’t show anything in the area assigned to it.

          In mm-error.log after a reboot, all I see is this:

          [06.09.2022 20:13.58.974] [ERROR] Whoops! There was an uncaught exception...
          [06.09.2022 20:13.58.990] [ERROR] Error: listen EADDRINUSE: address already in use 0.0.0.0:8080
              at Server.setupListenHandle [as _listen2] (node:net:1330:16)
              at listenInCluster (node:net:1378:12)
              at doListen (node:net:1516:7)
              at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
            code: 'EADDRINUSE',
            errno: -98,
            syscall: 'listen',
            address: '0.0.0.0',
            port: 8080
          }
          [06.09.2022 20:13.58.992] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
          [06.09.2022 20:13.58.993] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
          [29786:0906/201403.366075:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
          [29882:0906/201403.754866:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
          [29803:0906/201403.845480:ERROR:command_buffer_proxy_impl.cc(126)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
          

          (I renamed the log file and started a fresh log file with a reboot, as the old one is large and full of stuff).

          The mirror has a static IP address which hasn’t changed, and I haven’t knowingly changed anything in the config, at least since the problem arose.

          Can you remind me how to access the console?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @DarrenHill
            last edited by

            @DarrenHill alt-spacebar, n

            MagicMirror is the app created by my install

            mm is the one created by following the manual instructions.

            pm2 stop all
            will stop everything

            pm2 info 0 (or name) will dump out the info about what is to be run…
            for MagicMirror it is /home/pi/MagicMirror/I stallers/mm.sh

            to delete an entry

            pm2 delete 0( or 1 or a name)
            then pm2 save to update the pm2 startup cache

            pm2 --help, like most Linux commands will tell you all the things it can do

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 2 Replies Last reply Reply Quote 0
            • D Offline
              DarrenHill @sdetweil
              last edited by

              @sdetweil Thanks - I just found the wiki page about auto starting and saw I had somehow got it running twice.

              That’s now fixed, but after a reboot the module issue still remains.

              I’ll go check logs and console now.

              1 Reply Last reply Reply Quote 0
              • D Offline
                DarrenHill @sdetweil
                last edited by

                @sdetweil OK I’ve found a News module error in the MagicMirror-out.log:

                [06.09.2022 20:26.46.502] [LOG]   [NEWS] Error :  https://newsapi.org/v2/top-headlines?sources=bbc-news&pageSize=100&apiKey=<redacted> TypeError: Cannot read properties of undefined (reading 'toString')
                
                    at slugify (/home/pi/MagicMirror/modules/MMM-News/node_helper.js:24:17)
                    at cb (/home/pi/MagicMirror/modules/MMM-News/node_helper.js:89:33)
                    at getArticles (/home/pi/MagicMirror/modules/MMM-News/node_helper.js:135:22)
                    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
                
                

                I’ve removed my API key string, but the rest is copy/paste.

                I tried a git pull on the module the other day before my first post here, and it’s up to date.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @DarrenHill
                  last edited by

                  @DarrenHill that error means the content back from the API is not as expected. either nothing there or the format changed.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    DarrenHill @sdetweil
                    last edited by

                    @sdetweil OK, although from what @mumblebaj posted above it still works for him with my config?

                    I’ll try removing it and reinstalling it and see if that helps.

                    S M 2 Replies Last reply Reply Quote 0
                    • S Offline
                      sdetweil @DarrenHill
                      last edited by

                      @DarrenHill not a reinstall thing

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        DarrenHill @sdetweil
                        last edited by

                        @sdetweil OK.

                        So I guess I’m stuck for now unless you or the others have any suggestions.

                        I was wondering as you say if the incoming info format had changed when it started throwing the #null text, but it’s weird that it works for others?

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 4 / 4
                        • 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