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

Raspberry Pi Zero W for Magic Mirror

Scheduled Pinned Locked Moved Hardware
73 Posts 8 Posters 35.9k Views 9 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 Offline
    sdetweil @davidgagne
    last edited by May 29, 2024, 10:52 AM

    @davidgagne well…

    it seems the pm2 setup failed for some reason

    can you send me the ~/install.log

    my same userid at Gmail.

    you didn’t have to vnc to edit, nano works over ssh.

    because the pm2 setup was not completed,
    when you did pm2 start from the MagicMirror folder, it was trying to create the app MagicMirror command
    /home/username/MagicMirror/MagicMirror

    can you try to run the fixuppm2 script from my scripts page

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    D 1 Reply Last reply May 29, 2024, 11:43 AM Reply Quote 0
    • D Offline
      davidgagne @sdetweil
      last edited by May 29, 2024, 11:43 AM

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

      S 2 Replies Last reply May 29, 2024, 11:55 AM Reply Quote 0
      • S Offline
        sdetweil @davidgagne
        last edited by May 29, 2024, 11:55 AM

        @davidgagne and MagicMirror should have come up using firefox

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply May 29, 2024, 12:01 PM Reply Quote 0
        • S Offline
          sdetweil @davidgagne
          last edited by sdetweil May 29, 2024, 12:02 PM May 29, 2024, 12:01 PM

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

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

          you should install one of the windows ssh clients tools. Winscp or Bitvise ssh clients.
          they provide the typical ssh terminal AND also a windows file manager view of the remote system.
          so you can double click to edit on windows and automatically save the file back.

          bitvise also provides drag and drop file copy support to/from the remote system… for logs and credential files

          I use notepad++ or visual studio code to edit on windows.

          such a time saver!!

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply May 29, 2024, 12:47 PM Reply Quote 0
          • D Offline
            davidgagne @sdetweil
            last edited by May 29, 2024, 12:01 PM

            @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!

            S 2 Replies Last reply May 29, 2024, 12:05 PM Reply Quote 0
            • S Offline
              sdetweil @davidgagne
              last edited by May 29, 2024, 12:05 PM

              @davidgagne I am interested in the log to see why the inline pm2 setup failed.

              yes, pi0w is not fast.

              the default calendar and weather take configuration before they produce output.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply May 29, 2024, 12:49 PM Reply Quote 0
              • S Offline
                sdetweil @davidgagne
                last edited by May 29, 2024, 12:07 PM

                @davidgagne you can also adjust the MagicMirror config so you can open your windows browser to see it too.

                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 May 29, 2024, 12:47 PM

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

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    davidgagne @sdetweil
                    last edited by May 29, 2024, 12:49 PM

                    @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?

                    S 2 Replies Last reply May 29, 2024, 1:35 PM Reply Quote 0
                    • S Offline
                      sdetweil @davidgagne
                      last edited by May 29, 2024, 1:35 PM

                      @davidgagne pm2 logs --lines=75

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      D 1 Reply Last reply May 29, 2024, 2:17 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 8
                      • 3 / 8
                      3 / 8
                      • First post
                        22/73
                        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