MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    RPi MM clientonly on Boot

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 2 Posters 217 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      eguy6
      last edited by

      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 8080
      

      to 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.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @eguy6
        last edited by

        @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.sh

        And put your client start command there instead of the
        npm start
        Used to start the full version

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S E 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @sdetweil
          last edited by

          pm2’s job is the start and keep the app running
          So when you close the window, ctrl-q,
          pm2 just restarts the app

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • E Offline
            eguy6 @sdetweil
            last edited by

            @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…

            1 Reply Last reply Reply Quote 0
            • S sdetweil has marked this topic as solved
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy