A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Magic mirror dual screen
-
Here’s the answer for @1a2a3a (Edited to show below changes)
Here’s how to do it cleanly: (replace
<username>
with your pi login name., with width of first monitor)- create two starting scripts:
First,
mm.sh
is as follows:cd /home/<username>/MagicMirror DISPLAY=:0 npm start
Second,
mm2.sh
is as follows:cd /home/<username>/MagicMirror export MM_CONFIG_FILE=${pwd}/config/config2.js DISPLAY=:0 npm start
- Two config files in magicmirror/config next:
First,
config.js
(this is your second monitor):var config = { electronOptions: { x: <width> }, address: "0.0.0.0", port: 8080, ipWhitelist: [], language: "en", timeFormat: 12, units: "imperial", //logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"], modules: [ ...
Second
config2.js
(this is your first monitor):var config = { address: "0.0.0.0", port: 8081, ipWhitelist: [], language: "en", timeFormat: 12, units: "imperial", //logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"], modules: [ ...
electronOptions will only work in the file that isn’t redirected to a new config - so use that in the
config.js
only. -
@BKeyport nice description
-
@sdetweil I figured I might as well make it as clear as possible…
-
Thanks all! I’ll give this a go once the monitor arrives!
-
-
This post is deleted! -
@BKeyport I just fixed it
-
It has to be brackets on my system, FYI.
-
@BKeyport ok…
-
btw, how do i configure the css for the 2 screen?