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

    mvrlogins

    @mvrlogins

    3
    Reputation
    369
    Profile views
    35
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    mvrlogins Unfollow Follow

    Best posts made by mvrlogins

    • Not a mirror - a 27" Dell Monitor on the wall in the kitchen

      I decided against the use of a reflective surface

      MM Screenshot.jpg
      Includes

      MMM-PIR-Sensor
      MMM-Nest
      MMM-Remote-Control
      MMM-Teslalogger
      worldclock
      MM-DarkSkyForecast
      iFrame

      3 iFrame modules to display Roon, the car location Map and the house power display

      These 3 use homemade Javascript modules to grab data from the Roon API, Teslamate and EmonCMS respectively

      posted in Show your Mirror
      M
      mvrlogins
    • 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

    Latest posts made by mvrlogins

    • 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