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

MagicMirror Failing on Raspberry Pi Zero W Rev 1.1

Scheduled Pinned Locked Moved Unsolved Troubleshooting
43 Posts 3 Posters 2.9k Views 3 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.
  • S Away
    sdetweil @davidgagne
    last edited by Aug 1, 2024, 6:20 PM

    @davidgagne said in MagicMirror Failing on Raspberry Pi Zero W Rev 1.1:

    pm2 start MagicMirror, and now MM crashes again looking for electron.

    if you do

    cd ~/MagicMirror
    npm start 
    

    what happens?

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    D 1 Reply Last reply Aug 1, 2024, 6:24 PM Reply Quote 0
    • D Offline
      davidgagne @sdetweil
      last edited by sdetweil Aug 1, 2024, 6:28 PM Aug 1, 2024, 6:24 PM

      @sdetweil Here is the output from npm start called from within MM folder:

      > magicmirror@2.28.0 start /home/dvg/MagicMirror
      > ./run-start.sh $1
      
      [2024-08-01 14:22:15.896] [LOG] Starting MagicMirror: v2.28.0
      [2024-08-01 14:22:17.801] [LOG] Loading config ...
      [2024-08-01 14:22:17.876] [LOG] config template file not exists, no envsubst
      [2024-08-01 14:22:37.345] [LOG] Loading module helpers ...
      [2024-08-01 14:22:37.587] [LOG] No helper found for module: alert.
      [2024-08-01 14:22:39.311] [LOG] Initializing new module helper ...
      [2024-08-01 14:22:39.627] [LOG] Module helper loaded: updatenotification
      [2024-08-01 14:22:39.840] [LOG] No helper found for module: clock.
      [2024-08-01 14:22:40.776] [LOG] Initializing new module helper ...
      [2024-08-01 14:22:40.933] [LOG] Module helper loaded: mmm-systemtemperature
      [2024-08-01 14:22:41.119] [LOG] No helper found for module: compliments.
      [2024-08-01 14:22:41.252] [LOG] No helper found for module: weather.
      [2024-08-01 14:22:41.370] [LOG] No helper found for module: weather.
      [2024-08-01 14:22:41.440] [LOG] No helper found for module: weather.
      [2024-08-01 14:22:41.542] [LOG] All module helpers loaded.
      [2024-08-01 14:22:43.350] [LOG] Starting server on port 8080 ...
      [2024-08-01 14:22:44.452] [WARN]  You're using a full whitelist configuration to allow for all IPs 
      [2024-08-01 14:22:46.725] [LOG] Server started ...
      [2024-08-01 14:22:46.942] [LOG] Connecting socket for: updatenotification
      [2024-08-01 14:22:47.186] [LOG] Starting module helper: updatenotification
      [2024-08-01 14:22:47.362] [LOG] Connecting socket for: mmm-systemtemperature
      [2024-08-01 14:22:47.504] [LOG] Starting node helper: mmm-systemtemperature
      [2024-08-01 14:22:47.554] [LOG] Sockets connected & modules started ...
      [2024-08-01 14:22:47.633] [INFO]
      >>> Ready to go! Please point your browser to: http://0.0.0.0:8080 <<<
      Starting chromium browser now, have patience, it takes a minute
      Chromium_browser not installed
      ./run-start.sh: line 79: 11125 Killed                  node serveronly
      
      S 1 Reply Last reply Aug 1, 2024, 6:27 PM Reply Quote 0
      • S Away
        sdetweil @davidgagne
        last edited by Aug 1, 2024, 6:25 PM

        @davidgagne said in MagicMirror Failing on Raspberry Pi Zero W Rev 1.1:

        Can you help with getting my forum account upgraded so I don’t have all my posts queued for approval?

        the config I requested for the forum a couple years ago is a reputation of 2, and then posts will not be moderated.
        https://forum.magicmirror.builders/post/104688

        this keeps out all the spam, and other nasty stuff…

        I review every post that goes thru moderation queue. so I am the bottleneck…

        to improve your rep, takes contributing something that other users like enough to vote up your post…

        I cannot override that.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @davidgagne
          last edited by Aug 1, 2024, 6:27 PM

          @davidgagne said in MagicMirror Failing on Raspberry Pi Zero W Rev 1.1:

          Starting chromium browser now, have patience, it takes a minute
          Chromium_browser not installed

          so you have to install, firefox, midiori, or surf
          see my scripts doc

          https://github.com/sdetweil/MagicMirror_scripts?tab=readme-ov-file#switch-to-the-midori-or-firefox-or-surf-browser

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Aug 1, 2024, 6:35 PM Reply Quote 0
          • D Offline
            davidgagne @sdetweil
            last edited by Aug 1, 2024, 6:35 PM

            @sdetweil Right. I did all that – uninstalled chromium, installed Firefox, and edited installers/mm.sh – as part of my installation process. I’m not sure why it’s still looking for chromium; I assume it’s hard coded somewhere in the MM startup script.

            S 1 Reply Last reply Aug 1, 2024, 6:43 PM Reply Quote 0
            • S Away
              sdetweil @davidgagne
              last edited by sdetweil Aug 1, 2024, 6:45 PM Aug 1, 2024, 6:43 PM

              @davidgagne not hard coded…

                  # if not set
                  if [ "$external_browser." == "." ]; then
                      # start chromium
                      echo "Starting chromium browser now, have patience, it takes a minute"
              

              it IS case sensitive and ALSO needs the export
              unlike Windows in linux environment variables are not inherited by default…

              show me the mm.sh

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply Aug 1, 2024, 6:51 PM Reply Quote 0
              • D Offline
                davidgagne @sdetweil
                last edited by Aug 1, 2024, 6:51 PM

                @sdetweil Here’s the entire mm.sh file:

                #!/bin/bash
                # This file is still here to keep PM2 working on older installations.
                cd ~/MagicMirror
                export external_browser=firefox
                DISPLAY=:0 npm start
                
                S 1 Reply Last reply Aug 1, 2024, 6:58 PM Reply Quote 0
                • S Away
                  sdetweil @davidgagne
                  last edited by Aug 1, 2024, 6:58 PM

                  @davidgagne hm… no idea really
                  you can test the script with

                  cd ~/MagicMirror
                  installers/mm.sh
                  

                  and

                  cd ~/MagicMirror
                  export external_browser=firefox
                  npm start 
                  

                  never seen it fail tho.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    davidgagne @sdetweil
                    last edited by Aug 3, 2024, 4:15 PM

                    @sdetweil If electron hasn’t been required for years, then why does a fresh install of everything generate tens of thousands of “can’t find electron” lines in MagicMirror-error.log?

                    S 1 Reply Last reply Aug 3, 2024, 4:33 PM Reply Quote 0
                    • S Away
                      sdetweil @davidgagne
                      last edited by sdetweil Aug 5, 2024, 2:59 AM Aug 3, 2024, 4:33 PM

                      @davidgagne the default install is to use electron.

                      We made it optional, so the install would not just fail.
                      and my script makes other browsers available as alternatives.

                      if you do the manual install, there is nothing to fix the package.json still trying to use electron. and it errors out.

                      now you can clear the pm2 logs

                      pm2 flush

                      and then see info from future runs

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      D 1 Reply Last reply Aug 5, 2024, 1:13 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      2 / 5
                      • First post
                        17/43
                        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