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

Magic Mirror Mac Mini npm start

Scheduled Pinned Locked Moved General Discussion
18 Posts 3 Posters 4.1k 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.
  • D Offline
    drx1984 @sdetweil
    last edited by May 17, 2019, 8:57 PM

    @sdetweil pity MagicMirror does not start automatically after reboot

    1 Reply Last reply Reply Quote 0
    • D Offline
      drx1984
      last edited by May 21, 2019, 9:22 AM

      Does anyone have Magic Mirror on the Mac Mini on the run???
      How does she do that with the autostart??

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by May 21, 2019, 9:42 AM

        forget pm2. this could be a help.
        https://stackoverflow.com/questions/6442364/running-script-upon-login-mac

        D 1 Reply Last reply May 21, 2019, 10:04 AM Reply Quote 0
        • D Offline
          drx1984 @Guest
          last edited by May 21, 2019, 10:04 AM

          @Sean
          thanks, do I need to write a script?

          ? 1 Reply Last reply May 21, 2019, 10:06 AM Reply Quote 0
          • ? Offline
            A Former User @drx1984
            last edited by May 21, 2019, 10:06 AM

            @drx1984
            Wait a second. After trial on my mac, I’ll post for you. (And I think pm2 could also be available with launchd)

            D 1 Reply Last reply May 21, 2019, 10:07 AM Reply Quote 0
            • D Offline
              drx1984 @Guest
              last edited by May 21, 2019, 10:07 AM

              @Sean ok, that would be very nice

              ? 1 Reply Last reply May 21, 2019, 10:40 AM Reply Quote 0
              • ? Offline
                A Former User @drx1984
                last edited by A Former User May 21, 2019, 10:45 AM May 21, 2019, 10:40 AM

                @drx1984
                Ok. I found incredibly simple solution.

                sudo pm2 startup darwin
                

                That’s all. It is already served by pm2 since https://github.com/Unitech/pm2/pull/936
                (It will take a few seconds until MM starts from bootup)

                D 2 Replies Last reply May 21, 2019, 11:11 AM Reply Quote 0
                • D Offline
                  drx1984 @Guest
                  last edited by May 21, 2019, 11:11 AM

                  @Sean said in Magic Mirror Mac Mini npm start:

                  sudo pm2 startup darwin

                  ok thanks the command: sudo pm2 startup darwin tonight test and report you.
                  Many Thanks

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    drx1984 @Guest
                    last edited by May 21, 2019, 6:58 PM

                    @Sean I just tried, unfortunately I get an error message. Do you know how I can solve this?
                    Thank you

                    0_1558465101765_pm2_error.JPG

                    ? 1 Reply Last reply May 23, 2019, 6:18 AM Reply Quote 0
                    • ? Offline
                      A Former User @drx1984
                      last edited by May 23, 2019, 6:18 AM

                      @drx1984 0_1558592102911_pm2.png
                      Hmmm… For me it works.
                      Check ~/Library/LaunchAgents/directory whether exists or not.
                      You can save your xml (under Template) totarget path by manual then execute command list

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 2 / 2
                      2 / 2
                      • First post
                        13/18
                        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