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.

    modules

    Scheduled Pinned Locked Moved Solved Troubleshooting
    23 Posts 2 Posters 5.6k Views 2 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.
    • P Offline
      pat59
      last edited by

      by setting up a module at startup black screen (electron) I made an upgrade of electron the mirror started but there are hidden modules. check the MM logs for more detail:.
      sorry i am a newbie thank you.
      my best wishes for 2023

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

        @pat59 black screen

        see
        https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later/1

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • P Offline
          pat59
          last edited by

          20230124_190715.jpg 20230124_190715.jpg good evening here I am back after
          abscence I am always at the same point 3 modules d displayed out of 5 planned!20230124_185102.jpg 20230124_190715.jpg

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

            @pat59 show the output of the startup messages, where u do npm start

            also reminder that names are case sensitive in Linux,

            and show the config of one missing module,
            blank out any apikey, or pii

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • P Offline
              pat59
              last edited by

              voila after npm start

              magicmirror@2.22.0 start
              DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

              [24.01.2023 20:30.45.948] [LOG] Starting MagicMirror: v2.22.0
              [24.01.2023 20:30.45.965] [LOG] Loading config …
              [24.01.2023 20:30.45.999] [LOG] Loading module helpers …
              [24.01.2023 20:30.46.430] [LOG] Initializing new module helper …
              [24.01.2023 20:30.46.433] [LOG] Module helper loaded: MMM-Remote-Control
              [24.01.2023 20:30.46.480] [LOG] Initializing new module helper …
              [24.01.2023 20:30.46.483] [LOG] Module helper loaded: MMM-Saint
              [24.01.2023 20:30.46.487] [LOG] No helper found for module: alert.
              [24.01.2023 20:30.46.508] [LOG] Initializing new module helper …
              [24.01.2023 20:30.46.510] [LOG] Module helper loaded: updatenotification
              [24.01.2023 20:30.46.513] [LOG] No helper found for module: MMM-FlipClock.
              [24.01.2023 20:30.46.516] [LOG] No helper found for module: clock.
              [24.01.2023 20:30.47.290] [LOG] Initializing new module helper …
              [24.01.2023 20:30.47.292] [LOG] Module helper loaded: calendar
              [24.01.2023 20:30.47.310] [LOG] Initializing new module helper …
              [24.01.2023 20:30.47.311] [LOG] Module helper loaded: MMM-BME280
              [24.01.2023 20:30.47.312] [LOG] No helper found for module: MMM-OpenmapWeather.
              [24.01.2023 20:30.47.314] [LOG] No helper found for module: MMM-WiFiPassword.
              [24.01.2023 20:30.47.421] [LOG] Initializing new module helper …
              [24.01.2023 20:30.47.423] [LOG] Module helper loaded: newsfeed
              [24.01.2023 20:30.47.424] [LOG] All module helpers loaded.
              [24.01.2023 20:30.47.826] [LOG] Starting server on port 8080 …
              [24.01.2023 20:30.47.844] [WARN] You’re using a full whitelist configuration to allow for all IPs
              [24.01.2023 20:30.47.880] [ERROR] Whoops! There was an uncaught exception…
              [24.01.2023 20:30.47.893] [ERROR] Error: listen EADDRINUSE: address already in use 0.0.0.0:8080
              at Server.setupListenHandle [as _listen2] (node:net:1432:16)
              at listenInCluster (node:net:1480:12)
              at doListen (node:net:1629:7)
              at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
              code: ‘EADDRINUSE’,
              errno: -98,
              syscall: ‘listen’,
              address: ‘0.0.0.0’,
              port: 8080
              }
              [24.01.2023 20:30.47.894] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              [24.01.2023 20:30.47.895] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              [24.01.2023 20:30.48.740] [LOG] Launching application.
              [1778:0124/203050.294017:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
              [1807:0124/203050.622575:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

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

                @pat59

                node:internal/process/task_queues:84:21) {
                code: ‘EADDRINUSE’,
                errno: -98,
                syscall: ‘listen’,
                address: ‘0.0.0.0’,
                port: 8080
                

                that means something else is running using that address port combination

                usually this means starting another mm instance without stopping the prior one.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pat59
                  last edited by

                  Hello
                  I couldn’t get it to work, so I started all over again.
                  now it works , i installed googlephotos and i get error message ,so it can not open google account browser to get code thanks for your help.

                  pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ node generate_token_v2.js

                  (node:3448) UnhandledPromiseRejectionWarning: Error: The provided keyfile does not define a valid
                  redirect URI. There must be at least one redirect URI defined, and this sample
                  assumes it redirects to ‘http://localhost:3000/oauth2callback’. Please edit
                  your keyfile, and add a ‘redirect_uris’ section. For example:

                  “redirect_uris”: [
                  “http://localhost:3000/oauth2callback”
                  ]

                  at authenticate (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/@google-cloud/local-auth/build/src/index.js:51:15)
                  at generate (/home/pi/MagicMirror/modules/MMM-GooglePhotos/generate_token_v2.js:13:24)
                  at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GooglePhotos/generate_token_v2.js:27:1)
                  at Module._compile (internal/modules/cjs/loader.js:778:30)
                  at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
                  at Module.load (internal/modules/cjs/loader.js:653:32)
                  at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
                  at Function.Module._load (internal/modules/cjs/loader.js:585:3)
                  at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
                  at startup (internal/bootstrap/node.js:283:19)
                  

                  (node:3448) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
                  (node:3448) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
                  pi@rasp

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

                    @pat59 ok. it tells u the problem and how to work around it. did u do that?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      pat59 @sdetweil
                      last edited by

                      @sdetweil Hello and thank you for your feedback.
                      no nothing do I can not understand what I have to do sorry thank you

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

                        @pat59

                        : Error: The provided keyfile does not define a valid
                        redirect URI. There must be at least one redirect URI defined, and this sample
                        assumes it redirects to ‘http://localhost:3000/oauth2callback’. Please edit
                        your keyfile, and add a ‘redirect_uris’ section. For example:
                        
                        “redirect_uris”: [
                        “http://localhost:3000/oauth2callback”
                        ]
                        

                        the keyfile is the thing u downloaded from google

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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