MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. davidgagne
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 60
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil If you thought 148 restarts was bad … This is what I see now:

      pm2 start MagicMirror
      [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
      [PM2] [MagicMirror](0) ✓
      [PM2] Process successfully started
      ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0  │ MagicMirror    │ default     │ 2.27.0  │ fork    │ 14132    │ 0s     │ 659  │ online    │ 0%       │ 20.8mb   │ dvg      │ disabled │
      └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      
      posted in Hardware
      D
      davidgagne
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil It’s frustrating because I swear it was working before I rebooted.

      posted in Hardware
      D
      davidgagne
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil I emailed you the output from that. I’m guessing Error: Cannot find module 'electron' is bad?

      posted in Hardware
      D
      davidgagne
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil It looks like I spoke too soon. After a reboot, I cannot seem to get any output from MagicMirror.
      I rebooted and then called pm2 start MagicMirror from within the MagicMirror directory, and it seems to execute just fine. But … nothing happens. It doesn’t actually start the app, as far as I can tell. Even though the output seems the same:

      [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
      [PM2] [MagicMirror](0) ✓
      [PM2] Process successfully started
      ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0  │ MagicMirror    │ default     │ 2.27.0  │ fork    │ 4592     │ 1s     │ 148  │ online    │ 0%       │ 27.4mb   │ dvg      │ disabled │
      └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      

      Any ideas?

      posted in Hardware
      D
      davidgagne
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil I’m an Apple user. I am sure there’s something similar, though. Thanks.

      posted in Hardware
      D
      davidgagne
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil I am not going to bother sending you the install log because it worked!

      It took a long time to launch, but now I can see MagicMirror running when I VNC into the Pi.

      After running your fixuppm2 script I executed pm2 start MagicMirror and got this:

      [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
      [PM2] [MagicMirror](0) ✓
      [PM2] Process successfully started
      ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0  │ MagicMirror    │ default     │ 2.27.0  │ fork    │ 28553    │ 0s     │ 2    │ online    │ 0%       │ 2.5mb    │ dvg      │ disabled │
      └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      

      Now when I VNC into the Pi I see it running! So far the date and time is the only thing correctly displaying, but at least now MagicMirror is running. Thank you!

      posted in Hardware
      D
      davidgagne
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil Here’s what I got after running your fixup script:

      [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
      [PM2] [MagicMirror](0) ✓
      ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0  │ MagicMirror    │ default     │ 2.27.0  │ fork    │ 27952    │ 0s     │ 1    │ online    │ 0%       │ 2.5mb    │ dvg      │ enabled  │
      └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      [PM2] Saving current process list...
      [PM2] Successfully saved in /home/dvg/.pm2/dump.pm2
      

      I’ll email install.log to you as soon as I can figure out how to … find and copy the install log.

      posted in Hardware
      D
      davidgagne
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil Okay. I’m doing this right now.

      1. Flashed card with Legacy 32-bit.
      2. Connected via ssh to run your script.
        bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
        

        Answered yes to disable screen saver and use pm2 questions.

      3. Removed chromium with:
        sudo apt-get remove chromium-browser
        sudo apt autoremove
        
      4. Added Firefox with:
        sudo apt-get update
        sudo apt-get install firefox-esr
        
      5. Enabled VNC using sudo raspi-config GUI
      6. Connect via TigerVNC
      7. Edit mm.sh via VNC in Pi's baked-in text editor by adding:
        cd ~/MagicMirror
        export external_browser=firefox
        DISPLAY=:0 npm start
        
      8. sudo reboot

      9. Connect via ssh
      10. cd MagicMirror
        pm2 start MagicMirror
        
      11. And now -- finally! -- some progress:
        [PM2] Spawning PM2 daemon with pm2_home=/home/dvg/.pm2
        [PM2] PM2 Successfully daemonized
        [PM2][ERROR] Script not found: /home/dvg/MagicMirror/MagicMirror
        

      So … now what have I done wrong? What script is missing?

      posted in Hardware
      D
      davidgagne
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil said in Raspberry Pi Zero 2 W for Magic Mirror:

      flash the sd card… its a pi02W, a 3 in pi0 form factor

      I’m sorry but I don’t understand what this means. Which PiOS should I flash? I have been trying with the Legacy, 32-bit.

      (If it makes a difference, I actually have a Raspberry Pi Zero W Rev 1.1. I don’t think it’s a 2.)

      Thank you!

      posted in Hardware
      D
      davidgagne
    • RE: Raspberry Pi Zero W for Magic Mirror

      @sdetweil I am ripping my hair out trying to get MM running on a Pi Zero W. I’ve followed all of your (super helpful) suggestions across multiple posts, but no matter what I do, I keep getting:

      [PM2][ERROR] File ecosystem.config.js not found
      

      any time I try to execute pm2 start.

      I’ve run your upgrade / update scripts from github, I’ve removed Chromium and replaced it with Firefox, I’ve uninstalled and reinstalled ten different flavors of the PiOS, I’ve tried the MagicMirrorOS that someone else posted, etc. All with no luck.

      Do you have any ideas what could be the problem here?

      Thanks in advance,
      dvg

      posted in Hardware
      D
      davidgagne
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 6 / 6