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

    Posts

    Recent Best Controversial
    • Unifi doorbell video shown on MM when bell rung

      Not sure which subsection to put this in, but this seemed the right place. It may be of some use to people with a MM and a video doorbell

      I wanted to have the video from my doorbells (I have 2 on different doors) temporarily show on my MM when someone rung the doorbell.

      First attempt was to use MMM-Remote-Control, MMM-Pages, go2rtc and MMM-EmbedURL to show the RTSP video (via go2rtc coverting to WebRTC) using Unifi’s Alarm Webhook feature calling for a page change - The 2 video streams on a hidden page, only shown on the page change call.

      This worked in principal, but because the modules on the hidden page kept streaming the video even when not being displayed, the RPi5 got quite hot and the network overhead of the constant 24hr streaming was unneccesary.

      The solution was to use a script to do the following:

      Unifi alarm webhook calls http://pi_ip:9500/motion
      go2rtc starts
      Wait 3 seconds for go2rtc to connect to cameras
      MagicMirror electron refreshes (/api/refresh) so iframes reconnect to go2rtc
      Wait 3 seconds for refresh to complete
      Switch to camera page (/api/notification/PAGE_CHANGED/1)
      Camera feeds display for 60 seconds via WebRTC
      Switch back to main page (/api/notification/PAGE_CHANGED/0)
      Wait 2 seconds for page to switch
      go2rtc stops

      Works perfectly now. RPi stays cool and no constant streaming from camera to MM. There is a few seconds delay before it starts, but that actually works for me because of the location of the MM, the doors and where we usually are in the house.

      Hope this helps someone who wants to do something similar.

      Happy to answer questions.

      posted in Show your Mirror
      M
      mvrlogins
    • RE: RPi5 running hot

      @sdetweil

      Thanks

      I’ll have to find another way to stop the streaming while the page is hidden

      posted in Hardware
      M
      mvrlogins
    • RE: RPi5 running hot

      Instead of using pages to hide the module, I guess I could use MMM-Remote-Control to enable/disable the EmbedURL module? That would stop the streaming?

      posted in Hardware
      M
      mvrlogins
    • RE: RPi5 running hot

      @sdetweil said:

      @mvrlogins said:

      The EmbendURL modules only display on demand on a seperate page

      what do you mean by separate page?
      MagicMirror does not have pages, it has logical groupings of content, some shown together, others hidden (this is MMM-pages, MMM-Carousel, MMM-ModulesGroupsRotation, MMM-ProfileSwitcher, etc)
      so even if not shown, some content could still be generated (Embed/iFrame) , they don’t know they are hidden

      if you run ps -ef you can see the commandline used to launch each process.

      you say you have a 1 gig pi5, but mem reports as 2gig.

      but you are over physical, and swapping. which takes cycles.

      I would suggest, disabling module at a time
      add

      disabled:true, 
      

      after the module:name… line

      and rerun to see what the effect is. what are the embed modules showing? active content, graphs, images??

      The EmbedURL module shows a WebRTC video. The page is hiddent and called on demand (not regular rotation).

      I thought that the module would not continue to stream the video when hidden. I guess this is the problem, since it does continue

      posted in Hardware
      M
      mvrlogins
    • RE: RPi5 running hot

      @sdetweil said:

      @mvrlogins if you stop MagicMirror what is the temp?

      It drops to 50C in a few min

      posted in Hardware
      M
      mvrlogins
    • RE: RPi5 running hot

      I have ordered a fan/cooler

      But anyone have any insight into whethere the processes I listed are over running?

      posted in Hardware
      M
      mvrlogins
    • RE: RPi5 running hot

      The list of running modules -

      The EmbendURL modules only display on demand on a seperate page

      pi@MMPi5:~ $ curl -s http://localhost:8080/api/module | python3 -c "import sys,json; [print(m['identifier'], '-', m['name']) for m in json.load(sys.stdin)['data']]"
      module_0_alert - alert
      module_1_MMM-Remote-Control - MMM-Remote-Control
      module_2_MMM-pages - MMM-pages
      module_3_MMM-EmbedURL - MMM-EmbedURL
      module_4_MMM-EmbedURL - MMM-EmbedURL
      module_5_calendar - calendar
      module_6_iFrame - iFrame
      module_7_clock - clock
      module_8_MMM-Worldclock - MMM-Worldclock
      module_9_MMM-OpenWeatherForecast - MMM-OpenWeatherForecast
      module_10_MMM-EmbedURL - MMM-EmbedURL
      module_11_iFrame - iFrame
      module_12_newsfeed - newsfeed
      module_13_newsfeed - newsfeed
      pi@MMPi5:~ $ 
      
      posted in Hardware
      M
      mvrlogins
    • RPi5 running hot

      I have a new 1GB RPi5 running the latest version of MM, installed using @sdetweil 's scripts

      It is running very hot at 84C

      I don’t have any cooling hardware and it is not installed in a case, but airflow around is not restricted at all.

      The only additional program I have running is go2rtc to stream an RTSP camera feed to an iFrame, but that is on a seperate page (using MMM-pages) that is only called on demand

      I have ordered a cooler, but wanted to see if there was something amiss.

      pi@MMPi5:~ $ top -b -n 1 | head -20
      top - 12:40:10 up  5:33,  4 users,  load average: 8.30, 8.04, 7.71
      Tasks: 232 total,   3 running, 229 sleeping,   0 stopped,   0 zombie
      %Cpu(s): 77.8 us, 11.1 sy,  0.0 ni, 11.1 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st 
      MiB Mem :   2006.8 total,    160.7 free,   1137.2 used,    870.8 buff/cache     
      MiB Swap:   2006.0 total,   1966.0 free,     40.0 used.    869.5 avail Mem 
      
          PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
       450392 pi        20   0 1143840  56256  41376 R 100.0   2.7   0:00.33 MainThr+
         2582 pi        20   0   32.6g 160848 132096 S  72.7   7.8 234:05.79 electron
         2685 pi        20   0 1407.7g 169824 113552 R  45.5   8.3 103:34.34 electron
       449306 pi        20   0 1415.9g 185040 120112 S  45.5   9.0   0:23.18 electron
         3153 pi        20   0 1407.8g 162912 101904 S  27.3   7.9 102:32.93 electron
         1334 pi        20   0  527936 116960  85824 S  18.2   5.7  72:06.61 labwc
         1525 pi        20   0 1408.1g 269904 160912 S  18.2  13.1  16:37.33 electron
         2658 pi        20   0   32.3g  88832  71040 S  18.2   4.3   9:05.59 electron
         3253 pi        20   0   32.5g  67680  53712 S   9.1   3.3  17:05.44 electron
        40449 pi        20   0 1245936  38560     16 S   9.1   1.9  19:24.04 go2rtc
       450399 pi        20   0   10368   5152   2800 R   9.1   0.3   0:00.02 top
            1 root      20   0   25712  13968   9424 S   0.0   0.7   0:01.83 systemd
            2 root      20   0       0      0      0 S   0.0   0.0   0:00.04 kthreadd
      pi@MMPi5:~ $ 
      
      posted in Hardware
      M
      mvrlogins
    • RE: [MMM-Remote-Control] Cannot GET /remote.html

      Below from the pm2 log

      0|MagicMir | [2025-09-21 16:44:59.284] [ERROR] Error when loading MMM-Remote-Control: require() of ES Module /home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/uuid/dist-node/index.js from /home/pi/MagicMirror/modules/MMM-Remote-Control/API/api.js not supported.
      0|MagicMir | Instead change the require of index.js in /home/pi/MagicMirror/modules/MMM-Remote-Control/API/api.js to a dynamic import() which is available in all CommonJS modules. 
      

      See https://stackoverflow.com/questions/70541068/instead-change-the-require-of-index-js-to-a-dynamic-import-which-is-available

      posted in Troubleshooting
      M
      mvrlogins
    • RE: [MMM-Remote-Control] Cannot GET /remote.html

      @sdetweil

      Redid the install using

      npm install
      

      No errors during install

      Same problem

      posted in Troubleshooting
      M
      mvrlogins
    • RE: [MMM-Remote-Control] Cannot GET /remote.html

      I removed the Remote-Control installation using

      rm -r -f  MMM-Remote-Control/
      

      Installed it using the instructions on the github repository

      cd ~/MagicMirror/modules
      git clone https://github.com/Jopyth/MMM-Remote-Control
      cd MMM-Remote-Control
      npm ci --omit=dev
      

      I now get the following - which doesn’t seem fatal at first glance -

      npm warn ERESOLVE overriding peer dependency
      npm warn While resolving: react-inspector@6.0.2
      npm warn Found: react@19.1.1
      npm warn node_modules/swagger-ui/node_modules/react
      npm warn   react@">=16.8.0 <20" from swagger-ui@5.29.0
      npm warn   node_modules/swagger-ui
      npm warn     swagger-ui@"^5.29.0" from the root project
      npm warn   2 more (react-dom, react-immutable-pure-component)
      npm warn
      npm warn Could not resolve dependency:
      npm warn peer react@"^16.8.4 || ^17.0.0 || ^18.0.0" from react-inspector@6.0.2
      npm warn node_modules/swagger-ui/node_modules/react-inspector
      npm warn   react-inspector@"^6.0.1" from swagger-ui@5.29.0
      npm warn   node_modules/swagger-ui
      npm warn
      npm warn Conflicting peer dependency: react@18.3.1
      npm warn node_modules/react
      npm warn   peer react@"^16.8.4 || ^17.0.0 || ^18.0.0" from react-inspector@6.0.2
      npm warn   node_modules/swagger-ui/node_modules/react-inspector
      npm warn     react-inspector@"^6.0.1" from swagger-ui@5.29.0
      npm warn     node_modules/swagger-ui
      
      posted in Troubleshooting
      M
      mvrlogins
    • RE: [MMM-Remote-Control] Cannot GET /remote.html

      @sdetweil

      I’ve now changed it to

      var config = 
      {
        address: '0.0.0.0',
        ipWhitelist: [],
        modules: [
      
      
      
      
          {
            module: 'MMM-Remote-Control',
            config: {
              secureEndpoints: false
            }
          },
      

      Same problem with Canot GET /remote.html

      http://10.0.1.87:8080/ works fine and I see the MM display
      http://10.0.1.87:8080/remote.html leads to the error

      posted in Troubleshooting
      M
      mvrlogins
    • RE: [MMM-Remote-Control] Cannot GET /remote.html

      @sdetweil

      Interesting

      I’ve had that on an instance of MM I’ve been running for 5-6 years with Remote -Control and it’s always worked fine.

      I’ve been able to access the display and remote from anywhere on the network.

      So I just copied it over to the new one

      posted in Troubleshooting
      M
      mvrlogins
    • [MMM-Remote-Control] Cannot GET /remote.html

      On a new installation

      var config = 
      {
        address: '0.0.0.0',
        ipWhitelist: [
          '127.0.0.1',
          '::ffff:127.0.0.1',
          '::1',
          '10.0.1.1/24'
        ],
        modules: [
      
      
      
          {
            module: 'MMM-Remote-Control',
            config: {
              secureEndpoints: false
            }
          },
      

      The entire section is copied from another instance of MM where Remote-Control is working fine.

      On this new install I get

      Cannot GET /remote.html

      Help!

      posted in Troubleshooting
      M
      mvrlogins
    • RE: MMM-pages - how to know which page index my module has?

      @sdetweil

      Thanks for your help with this, Much appreciated

      I’m now away from the mirror for the weekend. I’ll give it a shot when I return on Tuesday

      posted in Development
      M
      mvrlogins
    • RE: MMM-pages - how to know which page index my module has?

      @sdetweil

      The video appears on both pages.

      The page with index 0 and the hidden page

      posted in Development
      M
      mvrlogins
    • RE: MMM-pages - how to know which page index my module has?

      @sdetweil

      Yes, using your fork

      posted in Development
      M
      mvrlogins
    • RE: MMM-pages - how to know which page index my module has?

      @evroom said in MMM-pages - how to know which page index my module has?:

      As a workaround, I will make it a requirement to put the MMM-Player on the first page (page index 0).
      When I receive 0, then I will start streaming, otherwise I will stop streaming.
      That seems to work.

      @sdetweil Maybe something to do with this?

      posted in Development
      M
      mvrlogins
    • RE: MMM-pages - how to know which page index my module has?

      @sdetweil said in MMM-pages - how to know which page index my module has?:

      git clone https://github.com/sdetweil/MMM-MPlayer

      Did as you suggested

      The video appears only on page index 0 and not on the hidden page

      See the 2 video images on the attached screenshot - both are over the weather module

      The header for the MPlayer appears on the hidden page

      I can change to the hidden page with Remote Control, no problem

          {
              module: "MMM-pages",
              config: {
                  rotationTime: 1000 * 86400, // rotate every 20 seconds
                  modules: [
      	
                      ["page1"],           // class name for page 1
               //       ["page2"],           // class name for page 2
              //        ["page3"],           // class name for page 3
                  ],
                  fixed: ["fixed_page"],
                  hiddenPages: {
                      "Doorbell": ["doorbell_page"],
                 
                  }
              }
          },
      
      {
      	module: 'MMM-MPlayer',
              classes: "doorbell_page",
              disabled: false,
              position: "top_left",
              header: "MPlayer",
      	config: {
      	  useTwoWindows: true,
      	  layout: 'column',
      	  monitorAspect: 0,
      	  rotate: -1,
      	  windowSize: { width: 640, height: 360 },
      	  windowPosition: { x: 5, y: 225 },
      	  streamInterval: 30000,
      	  streams: {
      		window1: [
      		  'rtsp://10.0.1.1:7447/gv9eHrB9yZyPhgvN',
      		],
      		window2: [
      		  'rtsp://10.0.1.1:7447/D89zTJyDwN8YtKix',
      		  
      		]
      	  }
      	}
      },
      

      ScreenFloat Shot of Preview at 20 Feb 2025 at 16_57_07.jpg

      posted in Development
      M
      mvrlogins
    • RE: MMM-pages - how to know which page index my module has?

      @sdetweil said in MMM-pages - how to know which page index my module has?:

      @mvrlogins hm, that makes no sense as the MagicMirror operations are the same

      Maybe something to do with mplayer itself, not the module MMM-Mplayer?

      posted in Development
      M
      mvrlogins
    • 1
    • 2
    • 1 / 2