Read the statement by Michael Teeuw here.
Mirror Not Working
-
@axellejamous said in Mirror Not Working:
When you’re in the MagicMirror directory try going into the vendor file (cd vendor) and typing “npm install”. I had the same symptoms when I installed mine so it could be the same issue.
Never mind. I realise I was running it with
node serveronly
and that works perfectly with 0 errors. However if I run it withnpm start
it’s still black. -
@axellejamous What Does ServerOnly Do?
-
This post is deleted! -
@aayush447
Severonly works perfectly, all modules come up like they should and no errors -
@axellejamous How to install that?
-
@aayush447
Ok. I seemed to have solved my issue, the MM works with npm start now.
Electron seemed to be causing the issue for me.Try this:
and then:
Then just try running npm start in the MagicMirror directory.I’m not sure why, but this solved it for me! Since you seem to have the same issue it might solve yours too.
-
@aayush447 Serveronly is included with the MagicMirror framework. What it does is skip displaying the interface on the Raspberry Pi via Electron and the HDMI video output. You can still see the interface by pointing a web browser (especially the browser included with the Raspberry Pi operating system) at the Pi. But the Pi itself will still display the desktop and/or command prompt.
This is especially useful for people who remote in to their Pi for development, multiple displays or remote access. For example, you could have one Pi run the MagicMirror framework and have a mirror in your bathroom, a display in your kitchen and a display in your man cave all showing the same output of the Pi.
I use
node serveronly
during my development on my office PC. It lets me use a web browser to view the interface, which I can resize, move to a different monitor, etc. Otherwise, Electron would take over one entire monitor to display the output of the Magic Mirror framework.