• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Multiple "Mirrors" from a single device

Scheduled Pinned Locked Moved Solved General Discussion
20 Posts 3 Posters 845 Views 4 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.
  • D Offline
    DarrenO 0 @BKeyport
    last edited by Nov 7, 2024, 11:11 PM

    @BKeyport
    isn’t this to run two MM’s on a single display and have the second MM displayed from the 1920th pixel on the x axis?

    I’m wanting to run two MM’s, each instance on isolated displays - one on the display connected to the host in the traditional method and the other on a remote display like another computer, or TV with an in-built browser.

    S B 3 Replies Last reply Nov 7, 2024, 11:26 PM Reply Quote 0
    • S Offline
      sdetweil @DarrenO 0
      last edited by sdetweil Nov 7, 2024, 11:29 PM Nov 7, 2024, 11:25 PM

      @DarrenO-0 and what does the status say?

      pm2 status
      pm2 logs 1 (or whatever the number is of the line for the second ) --lines=xxxx
      where xxxx is the number of the most recent lines in the log for that app

      I have lots of apps on my desktop pm2
      pm2 status output

      | id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
      ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
      │ 1  │ MagicMirror        │ fork     │ 27   │ stopped   │ 0%       │ 0b       │
      │ 7  │ MagicMirror1       │ fork     │ 279… │ stopped   │ 0%       │ 0b       │
      │ 0  │ Smart Mirror       │ fork     │ 31   │ stopped   │ 0%       │ 0b       │
      │ 3  │ checkarec          │ fork     │ 0    │ online    │ 0%       │ 3.5mb    │
      │ 6  │ smart-mirror       │ fork     │ 9    │ online    │ 0%       │ 3.5mb    │
      │ 5  │ smart-mirror ttt   │ fork     │ 10   │ stopped   │ 0%       │ 0b       │
      │ 4  │ start_alexa_bk     │ fork     │ 0    │ online    │ 0%       │ 3.5mb    │
      │ 2  │ startspot          │ fork     │ 328  │ stopped   │ 0%       │ 0b       │
      └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴────────
      

      the count under the circle coloum is restarts of that app

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Nov 7, 2024, 11:41 PM Reply Quote 0
      • S Offline
        sdetweil @DarrenO 0
        last edited by sdetweil Nov 7, 2024, 11:29 PM Nov 7, 2024, 11:26 PM

        @DarrenO-0 the server side still provides access regardless of where the local display output is configured

        AND if you run server mode, then the config for the local electron isn’t used

        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 @DarrenO 0
          last edited by Nov 7, 2024, 11:28 PM

          @DarrenO-0 said in Multiple "Mirrors" from a single device:

          or TV with an in-built browser.

          just heads up…

          we use the latest Javascript language options
          most/many/all TV’s do NOT have this browser version available and cannot be upgraded.
          so the MM screen will be black (browser crashed)

          when I got here in 2017, I could run MM on my Samsung TV browser
          not anymore

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Nov 7, 2024, 11:50 PM Reply Quote 0
          • D Offline
            DarrenO 0 @sdetweil
            last edited by Nov 7, 2024, 11:41 PM

            @sdetweil
            after running the mm2.sh script (runs as “npm run server”) and then I initiate a new SSH to the MM, I still only see a single instance (the original instance from mm.sh) of MM running when I issue a pm2 status command.
            Although I can physically see the second MM displayed as desired in my browser, I’m not seeing the second instance via the pm2 status command.

            S 1 Reply Last reply Nov 7, 2024, 11:51 PM Reply Quote 0
            • D Offline
              DarrenO 0 @sdetweil
              last edited by Nov 7, 2024, 11:50 PM

              @sdetweil
              Fair enough.
              So i’ll have to have a physical computer like a Pi, NUC or MiniPC attached to the TV via HDMI to display the MM via that computer’s browser.
              Not a big deal as the TV would be used for viewing TV channels and online streaming content anyway.

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @DarrenO 0
                last edited by sdetweil Nov 7, 2024, 11:53 PM Nov 7, 2024, 11:51 PM

                @DarrenO-0 how did you add it to pm2 . just doing mm2.sh doesn’t

                pm2 start xxxx
                xxx is the mm2.sh
                or the MagicMirror2.json
                it should run and you should see with status

                then pm2 save so that it will be saved to the bootup start list

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Nov 8, 2024, 12:04 AM Reply Quote 0
                • D Offline
                  DarrenO 0 @sdetweil
                  last edited by Nov 8, 2024, 12:04 AM

                  @sdetweil
                  yeah, I started it via the mm2.sh script that had the “npm run server” command
                  I’ve now started the second instance as “pm2 start pm2_MagicMirror2_new.json” and “pm2 status” does show both instances running.
                  Ran “pm2 save”, rebooted the host and both instances are showing as expected - MM#1 on the display connected to the host device, with MM#1 and MM#2 via a browser on a remote device/devices.

                  S 1 Reply Last reply Nov 8, 2024, 12:46 AM Reply Quote 0
                  • S Offline
                    sdetweil @DarrenO 0
                    last edited by Nov 8, 2024, 12:46 AM

                    @DarrenO-0 awesome!!..

                    now select which post is the one that you think ‘solved’ this
                    hit the 3 dots (bottom right of the post) and click on Mark this post as the correct answer

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • D DarrenO 0 has marked this topic as solved on Nov 8, 2024, 1:25 AM
                    • B Offline
                      BKeyport Module Developer @DarrenO 0
                      last edited by Nov 8, 2024, 9:47 PM

                      @DarrenO-0 Ahh, gotcha. Yes, this is for two on the same system, which linux treats as one huge monitor.

                      The "E" in "Javascript" stands for "Easy"

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 2 / 2
                      2 / 2
                      • First post
                        11/20
                        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