@sdetweil said in Getting MMM to open on the second monitor and correctly size:
electronOptions: { x:1920,fullscreen:false , width: 600, height:800},
the first option gives me this error
var config = {
electronOptions: { x:1920,fullscreen:false , width: 600, height:800},
WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: C:\Users\Dell Server\MagicMirror\config\config.js:11
var config = {electronOptions:electronOptions: {x:1920,fullscreen:false , width: 600, height:800},
^
SyntaxError: Unexpected token :
at Module._compile (internal/modules/cjs/loader.js:722:23)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at loadConfig (C:\Users\Dell Server\MagicMirror\js\app.js:69:12)
at App.start (C:\Users\Dell Server\MagicMirror\js\app.js:210:3)
at Object. (C:\Users\Dell Server\MagicMirror\js\electron.js:115:7)
at Module._compile (internal/modules/cjs/loader.js:786:30)
The second option
var config = {
electronOptions: { x:1920,fullscreen:false },
address: “localhost”,
gives me this error
WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: C:\Users\Dell Server\MagicMirror\config\config.js:11
var config = {electronOptions:electronOptions: {x:1920,fullscreen:false},
^
SyntaxError: Unexpected token :
at Module._compile (internal/modules/cjs/loader.js:722:23)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at loadConfig (C:\Users\Dell Server\MagicMirror\js\app.js:69:12)
at App.start (C:\Users\Dell Server\MagicMirror\js\app.js:210:3)
at Object. (C:\Users\Dell Server\MagicMirror\js\electron.js:115:7)
at Module._compile (internal/modules/cjs/loader.js:786:30)
the last option
starts MM in a window that can be dragged across to the second monitor but is not sized correctly.
It is the size of the normal full screen