Read the statement by Michael Teeuw here.
NPM restart issue
-
@mikmonken said in NPM restart issue:
pi@Mirror:~/MagicMirror $ node serveronly
Loading config …
WARNING! Could not find config. Please create one.That right there should be your clue … You have an error in your
'config.js'
. -
this is where i’m out of my depth then, does the fact that the mirror boots fine on RPI start up not mean that the config.js is OK?
I’m guessing not, but is there an easy way to debug? usually if the config.js file is wrong (say i get a comma out of place) then mirror just boots onto the default you’ve got a problem with the config.js screen check you have one page, which doesn’t happen with this error?
-
Actually, you can’t run both the default startup of the mirror, AND a serveronly. Once the mirror is up and running, just open a browser from wherever you are and load up the rpi’s address with the configured port. I believe you said that’s :8080. I guess I don’t understand why you are trying to also run serveronly …
-
Arrrr that’s Because I didn’t realise you could access Mirror through the browser without a running. And I hadn’t thought to test it out.
So I’m basically providing two conflicting commands that’s causing the error then. (In its most basic of explanations)
Thanks for your answers though. Do you ever sleep?
-
Sleep? Is there a definition for that? :)
To note: the npm process starts up Electron in kiosk mode on the rpi. Electron is simply a browser, which then loads the localhost address to MM². So if you know your rpi’s address on your network, you can load it up anywhere through a browser.
In case you haven’t seen it, I posted how my (development) setup is, and it hints at doing just that with a remote browser:
https://forum.magicmirror.builders/topic/265/my-setup-or-how-crazy-i-am