Read the statement by Michael Teeuw here.
Two Mirrors, One Pi
-
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?
-
@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
-
@JoeRonimo in addition you can create two apps in pm2, and manage them together or separately
each launching a separate script
-
@JoeRonimo were you able to work on any of this?