MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. DarrenO 0
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 45
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Multiple "Mirrors" from a single device

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

      posted in General Discussion
      D
      DarrenO 0
    • RE: Multiple "Mirrors" from a single device

      @sdetweil
      OK, so I launched the second instance of MM via mm2.sh with the “npm run server” command.
      I then launched a second SSH session to the MM device and issued a “pm2 save” command.
      Rebooted the MM device from the second SSH session but the second MM instance didn’t come up.

      posted in General Discussion
      D
      DarrenO 0
    • RE: Multiple "Mirrors" from a single device

      @sdetweil
      so mm2.sh should/would be:
      #!/bin/bash
      cd ~/MagicMirror
      export MM_CONFIG_FILE=config/config2.js
      export MM_PORT=8081
      npm run server
      #DISPLAY=:0 npm start

      while mm.sh remains untouched

      When I have this in place:

      • instance #1 correctly displays on the screen attached to the MM host… tick
      • i can also view instance #1 on a browser (on port 8080)… tick
      • can view instance #2 in a browser (on port 8081)… tick

      However, when I run mm2.sh while I am SSH’d to the MM, I am not returned to the command line so I can save the pm2 setup.
      I just have a prompt saying “Ready to go! Please point your browser to http://ipaddress:8081”

      I have to Ctrl-C to cancel out, which then stops the server function and the #2 instance is no longer displayed

      posted in General Discussion
      D
      DarrenO 0
    • RE: Multiple "Mirrors" from a single device

      @sdetweil
      OK, so no requirement to update the “name” and “watch” values in the .json file, but it doesn’t hurt to do so from an fyi perspective, right???

      When I run “pm2 start config2.js”, I can then access the second instance via browser on another device with no issue, but it also takes over the display directly connected to the MM host device.
      I can view both MM instances via a browser on different devices (great, as that was one of my original questions), but what if i want to view instance #1 via the display directly connected to the MM host device and instance #2 via a remote browser (or vice versa?

      My .sh files to start each MM instance are as follows:

      mm.sh
      #!/bin/bash
      cd ~/MagicMirror
      DISPLAY=:0 npm start

      mm2.sh
      #!/bin/bash
      cd ~/MagicMirror
      export MM_CONFIG_FILE=config/config2.js
      export MM_PORT=8081
      npm start
      #DISPLAY=:0 npm start

      Should I change anything, or what would I need to change, to have the desired outcome described above?

      posted in General Discussion
      D
      DarrenO 0
    • RE: Multiple "Mirrors" from a single device

      @sdetweil
      Thanks. That has sort of help me out and pointed me in the right direction.

      Is it just as simple as copying the existing:

      • mm.sh file -->> mm2.sh
      • pm2_MagicMirror_new.json -->> pm2_MagicMirror2_new.json

      and editing the pm2_MagicMirror2_new.json file to reference:

      • the app name of MagicMirror2
      • the script of mm2.sh (is there anything to change in this?)
      • watching the config2.js file for changes

      and then executing pm2 start config2.js --name MagicMirror2

      posted in General Discussion
      D
      DarrenO 0
    • Multiple "Mirrors" from a single device

      Is it possible to run multiple mirrors from a single device?

      My current MM utilises the default Calendar module to display family member calendars from Google in the top_left section and the MMM-CalendarWeek module in the bottom_bar section to display another Google calendar.
      I know I can display the MM via a web browser on any number of devices, but this is just a duplicate of what I see from the directly-connected host device.

      I want to output the family calendars on one display while the other calendar displays on another.
      This could be where one is displayed to a directly-connected output, while the other is viewed from a browser, or possibly, both are displayed via a browser if physically locating the host with either display isn’t possible.

      Is this sort of setup doable?

      I had read online that I would have to create a second config.js file, configured as required for the alternate view.
      Within that file, I would have to specify an alternate port (say 8081) and initiate a secondary instance of MM.
      However, the instructions never indicated or specified how the second config.js file would be referenced in order to display the appropriate output.

      posted in General Discussion
      D
      DarrenO 0
    • RE: Updating to latest MM version

      @sdetweil Thanks Sam

      I’ve removed the git reset --hard from my .sh script
      I had some small changes (gap-body-top/right/bottom/left set to 10px) in main.css which were reset back to the default 60px when I ran the git reset --hard command, so added those line specifically in the custom.css file instead and left the default vaules in the main.css file.

      For the updatenotification module, does the git pull command, for the respective specified modules not work?
      I thought having a git pull command for the modules would negate the need to update them rather than have something display. I’m happy for the core MM update notification but didn’t want notifications for installed modules.
      Am I, instead better off updating them as per the .sh script above?

      One last thing, when I update the config.js file, MM would normally auto-restart with file being rewritten.
      Now, for some reason, it doesn’t. How can I get it to do so?

      posted in General Discussion
      D
      DarrenO 0
    • Updating to latest MM version

      I created the following script that updates MM and the modules that i use.
      The script is scheduled to run via a systemd timer at a given date and time :

      #!/bin/bash
      cd ~/MagicMirror
      git reset --hard
      bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” apply
      cd ~/MagicMirror/modules/MMM-CalendarWeek
      git pull
      cd ~/MagicMirror/modules/MMM-OpenmapWeather
      git pull
      cd ~/MagicMirror/modules/MMM-Wallpaper
      git pull
      cd

      My questions are :
      1 - do I have to run a “git reset --hard” at all prior to running the update-script.sh script?
      2 - if I have also configured the updatenotification module for those listed 3x modules, do I have to perform the “git pull” command in my own script if the command for those modules is specified?
      {
      module: “updatenotification”,
      position: “bottom_bar”, //#position: “top_bar”,
      config: {
      updateInterval: 600000, // must be greater than 60000 (1 minute)
      ignoreModules: [], // [“MMM=ExampleModule1”, “MMM-ExampleModule2”]
      updateTimeout: 120000, // 2 minutes
      updateAutorestart: true, // true, false
      updates: [
      {
      “MMM-Wallpaper”: “git pull”,
      },
      {
      “MMM-OpenmapWeather”: “git pull”,
      },
      {
      “MMM-CalendarWeek”: “git pull”,
      },
      ],
      },
      },

      Thanks.

      posted in General Discussion
      D
      DarrenO 0
    • RE: Install MM on Debian 12

      @sdetweil retried 3x and same result.
      I was SSH’d into the device at the time and it had internet access at all times

      posted in General Discussion
      D
      DarrenO 0
    • RE: Install MM on Debian 12

      @sdetweil
      Just trying Debian12 again and ran your script.
      It failed during the node and npm installation stage…

      installing correct version of node and npm, please wait
      curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
      xz: (stdin): Unexpected end of input
      tar: Unexpected EOF in archive
      tar: Unexpected EOF in archive
      tar: Error is not recoverable: exiting now

      Error: failed to download archive for 20.8.0

      node failed to install, exiting

      Going back to Debian11 now to see if I can get things back up and running.

      posted in General Discussion
      D
      DarrenO 0
    • 1
    • 2
    • 3
    • 4
    • 5
    • 3 / 5