I set up MM on a Pi Zero 2 and told the install script to not start MM on boot because I wanted to be able to play with it from the command line. Now that I’ve got it mostly where it needs to be, I tried to switch to having it start at boot using the fixuppm2.sh script.
Now it seems to be running after a reboot (I can access it from a web browser on another system) but nothing shows on the attached screen.
It’s a Pi Zero 2w attached to a 7" LCD screen from Amazon using HDMI.
In config.js, I have this set up:
let config = {
address: "192.168.xxx.xxx", // Address to listen on, can be:
address: "0.0.0.0", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out or empty, is "localhost"
port: 8080,
basePath: "/", // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
// you must set the sub path here. basePath must end with a /
ipWhitelist: ["127.0.0.1", "192.168.xxx.0/24"], // Set [] to allow all IP addresses
On the other MM I’m working on (Pi 4), I use this to start it:
mmstart ()
{
cd $HOME/MagicMirror;
DISPLAY=:0 npm start
}
Am I missing the “DISPLAY=:0” somewhere?
Thanks!