Read the statement by Michael Teeuw here.
MagicMirror dual monitor configuration
-
I have my mm configured and working great on one monitor. I’ve used pm2 module to auto start for display=:0 but we i’ve tried to get display=:2 to start i get nothing on the second display… I have 2 instances of mm one named mm and the other mm2. i’ve added the following in mm.sh file
cd ~/MagicMirror
DISPLAY=:0 npm start
cd ~/MagicMirror1
DISPLAY=:4 npm start
But still only the Display 1 will start… Help please… -
@sdetweil freaking genius!.. That worked like a charm… I’ve been beating my head against the wall for 2 days now trying to figure this thing out… Wonderful…
-
@pastormingle the second display is not :2
it’s all still display :0
u can adjust the pixel offset for the web page
by adding
electronOptions:{ x:1920 },to config.js before the modules: entry
where the 1920 is the pixel width of the 1st display
-
@sdetweil you are saying in my second mm directory in the config file add the electronOptions?
-
@pastormingle correct… one displays a x:0 (default)
and the other displays at x:1920) -
@sdetweil freaking genius!.. That worked like a charm… I’ve been beating my head against the wall for 2 days now trying to figure this thing out… Wonderful…
-
@pastormingle Need some help now running two config files for my dual monitor configuration. I have MM directory and a MM1 directory. But it looks like both are reading the same config file… if i go to MM1 and do a DISPLAY=:0 npm start it seem to read the same config files as MM directory. What am i doing wrong here?
-
@pastormingle hm… I do this ALL the time
two copies of MM, two config files
have to set two different ports too, right?
one of 8080 and one on 8090 (thats what I do)
-
@sdetweil I’ve been using pm2 to start so not sure how I set up separate ports for that?
-
@pastormingle port is in the config.js
also do pm2 status
and pm2 info xx
where xx is the number
to make sure they are starting different scripts…
how did u setup the second instance?
-
@sdetweil I found it and it’s working great thanks for the help… Now just need to get to start with pm2 and should be good to go…
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