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.

    Does the config allow for different modes or not?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 2 Posters 445 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
      ember1205
      last edited by

      In the main configuration file, there is a section to specify “serveronly” as an option which is supposed to NOT load any client resources. Attempting to start the mirror with npm start doesn’t seem to actually “respect” this option and it constantly complains about client-side components that may not be installed or operational.

      I’ve also not found anywhere in the configuration where you might be able to specify “clientonly” and indicate the server to connect to. Why is this? Why do I need three different ways of starting the mirror depending on if I’m running a server, a client, or both?

      What am I missing here?

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

        @ember1205 digging?

        right there in the doc
        https://docs.magicmirror.builders/getting-started/installation.html#usage

        except the 1st bullet point is no longer true

        works same way today

        no plans to do all this w a single command

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @ember1205 the parm in config.js matches an older startup method, using run-start.sh which my installer script still uses for pi0w systems.

          setting it to anything, but launching the electron.js (see the start: clause in package.json) skips the script that uses this value, so
          it would do nothing

          I believe the commented out stuff is being removed the next release.

          why different commands. cause it needs to do different stuff

          my run-start just executes the different commands under the covers.

          in client only the config.js is not used. as the client is a browser onto the remote mm

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • E Offline
            ember1205
            last edited by

            Makes sense… Are there plans, then, to change the startup to a single command (script) that will read some sort of config file or accept a command-line parameter to control what gets started? I had to do a bit of digging to find the different (correct) commands to use to start the server on a headless machine and the client on a Pi and then put them into the “mm.sh” startup script so that PM2 could load each of them correctly. This doesn’t seem to match up with what’s documented, either.

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

              @ember1205 digging?

              right there in the doc
              https://docs.magicmirror.builders/getting-started/installation.html#usage

              except the 1st bullet point is no longer true

              works same way today

              no plans to do all this w a single command

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 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