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.

    Two Mirrors, One Pi

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 706 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.
    • J Offline
      JoeRonimo
      last edited by

      I have a single Raspberry Pi 4 controlling two displays named “Display 1” and “Display 2”. I also have two instance of the MM project installed on the Pi in separate folders. To start each MM, I have to launch two terminal windows and position each one in each display before launching the MM project associated with that display. So, I position terminal window one in the first display and change to the first MM directory. Then I position the second terminal window in the second display and change the directory to the second instance of MM. Then I quickly type “npm start” in each window and see each display go black and display the modules I have in each instance.

      My question is “How can I create a script to autostart each MM in their respected displays when I start the computer?” Does Linux have a way of directing output to a specific display?

      S 3 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @JoeRonimo
        last edited by sdetweil

        @JoeRonimo see the documentation in a couple places that should help

        using the config filename env variable to launch multiple MM instances from the same MM folder
        https://docs.magicmirror.builders/configuration/introduction.html#advanced-configuration-and-frequently-asked-how-to-configure-examples
        you install ALL the modules, used by the multiple instances, but only USE the ones you want in each instance (config.js)

        and using the config to control which physical screen MM will appear on , which provides an exact example of what you want to do

        https://docs.magicmirror.builders/configuration/introduction.html#using-electronoptions

        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 @JoeRonimo
          last edited by

          @JoeRonimo in addition you can create two apps in pm2, and manage them together or separately

          each launching a separate script

          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 @JoeRonimo
            last edited by

            @JoeRonimo were you able to work on any of this?

            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