@sdetweil thx u so much. All Modules and configs works Perfect. thx
Read the statement by Michael Teeuw here.
Posts made by chichi1887
-
RE: Multiple screens fo MM.
-
RE: Multiple screens fo MM.
@sdetweil
thx so much, both starts, only problem both start at the same Screen and i can’t change the position or start screen. Must change the Display from 0 to 1 oder in the mm.sh config? -
RE: Multiple screens fo MM.
When I start the mm2.sh script, despite the correct configuration, it takes the config.js instead of the config2.js. Therefore, it seems unable to start both instances simultaneously because it attempts to open the same config.js. The configuration looks like this in the mm2.sh script:
cd ~/MagicMirror
export MM_CONFIG=config2.js
DISPLAY=:0 npm startthe pm2_MagicMirror2.json is copy and paste from u ;-)
-
RE: Multiple screens fo MM.
@sdetweil said in Multiple screens fo MM.:
cd ~/MagicMirror
installers/mm2.shHey,
the mm.sh starts without a problem but the second has this
all modules that starts on the mm.sh are disable in the mm2 config.
Display=0 in both are correkt or the second must be nr.1? -
RE: Multiple screens fo MM.
@sdetweil said in Multiple screens fo MM.:
@Sagar73594 if you have a bash or sh script, you can set environment variables that the MM code will read
export MM_CONFIG=??? filename
will cause filename to be used as the name of the file to read for configuration (replacing config.js)
if you use my install script and selected use pm2, then the script is
~/MagicMirror/installers/mm.shbefore the line
npm start
add the line above to set the file nameso, by using different config files, one could launch multiple instances of MagicMirror from the same set of files.
some could target one display and others another, and some could be server only as weill.one could also install 50 modules and use the same 25 in all instances and some mix of the others in different instances, all from the same set of files in the MagicMirror folder tree.
Hi Sagar,
Hello Sagar, thank you for your guidance. Unfortunately, I keep encountering an error upon startup. A version starts automatically with the familiar error message “npm run config: check”. I stop the MagicMirror and manually start it from the MagicMirror folder with npm start, but then it allegedly cannot find the config. As you described, I created config1 and config2, then edited installers/mm.sh and mm2.sh. It looks something like this now:
cd ~/MagicMirror
export MM_CONFIG=config2.js
DISPLAY=:2 npm startI also copied the pm2_MagicMirros.json once and simply appended a “1” to the name. The configuration looks like this:
“apps” : [{
“name” : “MagicMirror”,
“script” : “/home/pi/MagicMirror/installers/mm.sh”,
“watch” : [“/home/pi/MagicMirror/config/config1.js”]Do you perhaps have any tips for me on what I might be doing wrong?
-
RE: Multiple screens fo MM.
@sdetweil said in Multiple screens fo MM.:
@Sagar73594 if you have a bash or sh script, you can set environment variables that the MM code will read
export MM_CONFIG=??? filename
will cause filename to be used as the name of the file to read for configuration (replacing config.js)
if you use my install script and selected use pm2, then the script is
~/MagicMirror/installers/mm.shbefore the line
npm start
add the line above to set the file nameso, by using different config files, one could launch multiple instances of MagicMirror from the same set of files.
some could target one display and others another, and some could be server only as weill.one could also install 50 modules and use the same 25 in all instances and some mix of the others in different instances, all from the same set of files in the MagicMirror folder tree.