Read the statement by Michael Teeuw here.
MagicMirror dual monitor configuration
-
@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…