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.

    Accessing config.js and file explorer on laptop

    Scheduled Pinned Locked Moved Solved Troubleshooting
    24 Posts 4 Posters 987 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.
    • B Offline
      British_Kiwi @British_Kiwi
      last edited by

      Okay, so I have been doing a bit of testing and trying to work out what is happening and when. Sort of worked out where to check logs and which logs and using a combination of the main terminal, Bitvise and Raspberry Pi Connect to try different things. I think some of the issues, might be related to how I am interacting with it.

      I have reinstalled RPiOS and MagicMirror. I have also set up the autostart using pm2. This seems to run and open MM with no errors.

      If I was to add a module or change the config file, I would then use

      npm run start
      

      to run the MM. I have also started using

      npm run start:wayland
      

      helps with some things, but having port issues. I am guessing that this might be due to the autostart and I am not sure how to stop MM running when I am developing it. I had used ctrl_Q, but MM just reruns. Or is that all I need to do?

      I am finding that if I turn off the RPi and then turn it on, MM runs with no issues. If I try to run it using the above npm command, I get the following errors:

      admin@raspberrypihome:~ $ cd MagicMirror
      admin@raspberrypihome:~/MagicMirror $ npm run start:wayland
      
      > magicmirror@2.32.0 start:wayland
      > WAYLAND_DISPLAY="${WAYLAND_DISPLAY:=wayland-1}" ./node_modules/.bin/electron js/electron.js --enable-features=UseOzonePlatform --ozone-platform=wayland
      
      [2025-08-01 06:24:34.441] [LOG]   Starting MagicMirror: v2.32.0 
      [2025-08-01 06:24:34.452] [LOG]   Loading config ... 
      [2025-08-01 06:24:34.453] [LOG]   config template file not exists, no envsubst 
      [2025-08-01 06:24:34.654] [INFO]  Checking config file /home/admin/MagicMirror/config/config.js ... 
      [2025-08-01 06:24:34.690] [INFO]  Your configuration file doesn't contain syntax errors :) 
      [2025-08-01 06:24:34.691] [INFO]  Checking modules structure configuration ... 
      [2025-08-01 06:24:34.728] [INFO]  Your modules structure configuration doesn't contain errors :) 
      [2025-08-01 06:24:34.729] [LOG]   Loading module helpers ... 
      [2025-08-01 06:24:34.730] [LOG]   No helper found for module: alert. 
      [2025-08-01 06:24:34.733] [LOG]   Initializing new module helper ... 
      [2025-08-01 06:24:34.733] [LOG]   Module helper loaded: updatenotification 
      [2025-08-01 06:24:34.734] [LOG]   No helper found for module: clock. 
      [2025-08-01 06:24:34.794] [LOG]   Initializing new module helper ... 
      [2025-08-01 06:24:34.794] [LOG]   Module helper loaded: calendar 
      [2025-08-01 06:24:34.795] [LOG]   No helper found for module: compliments. 
      [2025-08-01 06:24:34.795] [LOG]   No helper found for module: weather. 
      [2025-08-01 06:24:34.830] [LOG]   Initializing new module helper ... 
      [2025-08-01 06:24:34.831] [LOG]   Module helper loaded: newsfeed 
      [2025-08-01 06:24:34.831] [LOG]   All module helpers loaded. 
      [2025-08-01 06:24:34.834] [LOG]   Starting server on port 8080 ...  
      [2025-08-01 06:24:35.229] [ERROR] Whoops! There was an uncaught exception... 
      [2025-08-01 06:24:35.233] [ERROR] Error: listen EADDRINUSE: address already in use ::1:8080
          at Server.setupListenHandle [as _listen2] (node:net:1940:16)
          at listenInCluster (node:net:1997:12)
          at GetAddrInfoReqWrap.callback (node:net:2206:7)
          at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:134:8) {
        code: 'EADDRINUSE',
        errno: -98,
        syscall: 'listen',
        address: '::1',
        port: 8080
      } 
      [2025-08-01 06:24:35.234] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 
      [2025-08-01 06:24:35.234] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues 
      [2025-08-01 06:24:35.591] [INFO]  System information:
      ### SYSTEM:   manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 5 Model B Rev 1.1; virtual: false
      ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.34+rpt-rpi-2712
      ### VERSIONS: electron: 36.7.3; used node: 22.17.1; installed node: 22.17.1; npm: 10.9.2; pm2: 6.0.8
      ### OTHER:    timeZone: Australia/Melbourne; ELECTRON_ENABLE_GPU: undefined 
      

      The config file is not changed at all. When I started getting a different port in use issue, I tried to find what else was using it, but I couldn’t find anything else.
      I wasn’t too sure if running Raspberry Pi Connect was causing an issue.
      I suspect I am just using this incorrectly. Once I resolve it, I can start making proper changes.

      Thanks in advance!

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

        @British_Kiwi pm2 has started MagicMirror already, you have to restart it

        pm2 status

        will show you the managed apps
        pm2 restart xx
        where xx is the name or number of the row

        pm2 restart MagicMirror
        pm2 restart 0

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          British_Kiwi @sdetweil
          last edited by

          @sdetweil right that’s great and really helpful. The more I am learning, the more I am realising I wasnt quite using the right commands. I’ve tested doing a small change and seems no errors. When I get back I will test making changes through Bitvise and all going well, will go ahead and make lots of changing.
          Thank you so much!!

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            British_Kiwi @British_Kiwi
            last edited by

            @sdetweil you must be getting very sick of me!
            Those scripts you gave me have been fantastic. I’ve also made my own change log to track my changes to the config file and will do the same with custom.css once I get started.

            I added a world clock and the ISS space station module and started getting some errors. I have managed to remove most, and going to slowly apply things again. Currently both are commented out on the config file for the time being so I can isolate the issue.

            I am now left with two, one is the ipWhiteList warning, which is fine and then I get the following:

            0|MagicMir | /home/admin/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
            

            I did a search and since then I have updated Raspian, I have run your script:

            bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
            
            

            but I still have it.
            If it helps pm2 -v is 6.0.8, npm -v is 10.9.2, node -v is 22.17.1

            p.s. thanks for fixing the ‘code’ in one of my previous replies, I’m being extra careful to mark up codes.

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

              @British_Kiwi

              Can you show the end of the ~/MagicMirror/installers/upgrade.log

              If you upgraded manually the script will abort if you are on the same version

              The exited isusually due to restart.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                British_Kiwi @sdetweil
                last edited by

                @sdetweil

                Hi, sorry running around after kids!

                This is the end of the upgrade.log (not sure how my other reply separated!)

                Upgrade started - Sat Aug  2 10:11:26 AEST 2025
                system is Linux raspberrypihome 6.12.34+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.34-1+rpt1~bookworm (2025-06-26) aarch64 GNU/Linux
                user requested to apply changes
                doing test run = false
                the os is PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
                architecture from dpkg is 
                Node currently installed. Checking version number.
                Minimum Node version: v22.14.0
                Installed Node version: v22.17.1
                Check current Node installation ...
                Node currently installed. Checking version number.
                Minimum Node version: v22.14.0
                Installed Node version: v22.17.1
                No Node.js upgrade necessary.
                Check current NPM installation ...
                NPM currently installed. Checking version number.
                Minimum npm version: V10.9.2
                Installed npm version: V10.9.2
                No npm upgrade necessary.
                
                increasing swap space
                saving custom.css
                remote name = origin
                local version 2.32.0 already same as master 2.32.0
                restoring custom.css
                removing git alias
                Upgrade ended - Sat Aug  2 10:11:26 AEST 2025
                
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @British_Kiwi
                  last edited by

                  @British_Kiwi local version same as master,
                  So script stopped

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    As for you , internet search

                    raspberry pi 4 enable gpu
                    Or
                    raspberry pi 5 enable gpu

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      British_Kiwi @sdetweil
                      last edited by

                      @sdetweil I did a search for it and it and followed instructions, but the GPU memory was not in the raspi-config. Turns out newer RPi5 does not have it.
                      Found another page on how to change it on the config.txt but I cannot see it listed. File was not in the folder google suggested, so opened the file that the command prompt said it moved.
                      I am not really set on having ISS-Live, it does work, but whilst I try and work out how to get google photos or other photos, thought it would be nice to see what it could do.
                      The modules I want seem to be showing okay, but will keep an eye on it.

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

                        @British_Kiwi google photos is broken since their design change

                        i use MMM-ImagePhotos accessing images from a local file server

                        the message was the only thing we were trying to clear as it works ok

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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