Read the statement by Michael Teeuw here.
Magic Mirror Mac Mini npm start
-
@sdetweil said in Magic Mirror Mac Mini npm start:
if u used the installer, it should have setup a pm2 module to auto start mm in boot.
From your shell, can you tryI have used this installation description.
do I have to install something else???
https://forum.magicmirror.builders/topic/810/total-beginner-mm2-with-macmini/3 -
@sdetweil Now I have PM2 modules through this installation guide.
But when I restart the Mac Mini, MagicMirror does not start by itself.
https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror -
@sdetweil

ok so? -
@drx1984 I am sure the mm setup failed when it did the pm2 setup, as it is hard coded to user pi.
I think if you do
pm2 start ~/MagicMirror/installers/mm.sh pm2 saveIt will work on boot
-
@sdetweil did the mirror app start?
-
@sdetweil said in Magic Mirror Mac Mini npm start:
did the mirror app start?
Yes starts, Now I try to restart the MacMini and see if Magic Mirror starts automatically
-
@sdetweil pity MagicMirror does not start automatically after reboot
-
Does anyone have Magic Mirror on the Mac Mini on the run???
How does she do that with the autostart?? -
forget pm2. this could be a help.
https://stackoverflow.com/questions/6442364/running-script-upon-login-mac -
@Sean
thanks, do I need to write a script? -
@drx1984
Wait a second. After trial on my mac, I’ll post for you. (And I think pm2 could also be available withlaunchd) -
@Sean ok, that would be very nice
-
@drx1984
Ok. I found incredibly simple solution.sudo pm2 startup darwinThat’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) -
@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 -
@Sean I just tried, unfortunately I get an error message. Do you know how I can solve this?
Thank you
-
@drx1984

Hmmm… For me it works.
Check~/Library/LaunchAgents/directory whether exists or not.
You can save your xml (underTemplate) totarget pathby manual then executecommand list
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login