Read the statement by Michael Teeuw here.
RPi MM clientonly on Boot
-
Hello! I have my MM server running on my homelab machine in a container just fine, but I’m using my RPi 3 to run the screen elsewhere in the room, so I only need the client running. It also runs Octoprint for my 3D printer since it’s right there too. Right now, the pi boots and starts MM in the default server mode and I would have to manually run
node clientonly --address 192.168.1.5 --port 8080to get the client window with my server’s config. Even then, the original server window just reopens in the background when closed. My goal is to trim down resource usage, so ideally I can just boot into client mode. I remember this as part of the setup when I installed it via Docker for the server but it was not given as an option and I don’t know which files to change to force this.
-
@eguy6 sounds like you used the scripted install to put MagicMirror on the pi. And selected pm2 to start
If so, just edit the
~/MagicMirror/installers/mm.shAnd put your client start command there instead of the
npm start
Used to start the full version -
pm2’s job is the start and keep the app running
So when you close the window, ctrl-q,
pm2 just restarts the app -
@sdetweil Thank you, that worked perfectly! Now I just need to eliminate as many nonessential programs in the background. The flip clock and scoreboard scrolling are a bit choppy…
-
S sdetweil has marked this topic as solved
