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

    Posts

    Recent Best Controversial
    • Need "correct" version of node-libgpiod ....

      Dear Gurus!
      May one of you got an idea…
      I’m on my way (looooonnnnggggg planned) to re-implement bugsounet’s MMM-Pir, and I am nearly done…
      My last hurdle seems to be the way he has handled the PIR sensor itself. I am not aware if the second way (python script) ever had worked but I stuck with the implementation of the GPIO handler with node-libgpiod.
      This works fine in my environment as-is without any problems.
      Needed dependeny is node-libgpiod.
      I’ve installed this with

      npm install node-libgpiod
      

      In my own - brand new - module folder - Ran without any error.
      But when mirror is restarted I found an error in logfile, stating that there is a version mismatch…

      0|MagicMir | [2025-08-06 21:13:55.302] [ERROR] 2025-08-06T21:13:55 <error> [MMM-Pir] [LIB] [PIR] [GPIOD] Error: The module '/home/pi/MagicMirror/modules/MMM-PresenceScreenControl/node_modules/node-libgpiod/build/Release/node-libgpiod.node'
      0|MagicMir | was compiled against a different Node.js version using
      0|MagicMir | NODE_MODULE_VERSION 115. This version of Node.js requires
      0|MagicMir | NODE_MODULE_VERSION 128. Please try re-compiling or re-installing
      0|MagicMir | the module (for instance, using `npm rebuild` or `npm install`). (/home/pi/MagicMirror/modules/MMM-PresenceScreenControl/pirLib.js:163 PIR.gpiodDetect) 
      

      My Node Version is:

      pi@MagicMirrorPi5:~ $ node -v
      v20.18.1
      

      Information of Mirror:

      pm2 info MagicMirror
       Describing process with id 0 - name MagicMirror 
      ┌───────────────────┬──────────────────────────────────────────┐
      │ status            │ online                                   │
      │ name              │ MagicMirror                              │
      │ namespace         │ default                                  │
      │ version           │ 2.31.0-develop                           │
      │ restarts          │ 40                                       │
      │ uptime            │ 59s                                      │
      │ script path       │ /home/pi/MagicMirror/installers/mm.sh    │
      │ script args       │ N/A                                      │
      │ error log path    │ /home/pi/.pm2/logs/MagicMirror-error.log │
      │ out log path      │ /home/pi/.pm2/logs/MagicMirror-out.log   │
      │ pid path          │ /home/pi/.pm2/pids/MagicMirror-0.pid     │
      │ interpreter       │ bash                                     │
      │ interpreter args  │ N/A                                      │
      │ script id         │ 0                                        │
      │ exec cwd          │ /home/pi                                 │
      │ exec mode         │ fork_mode                                │
      │ node.js version   │ N/A                                      │
      │ node env          │ N/A                                      │
      │ watch & reload    │ ✔                                        │
      │ unstable restarts │ 0                                        │
      │ created at        │ 2025-08-06T19:42:31.312Z                 │
      └───────────────────┴──────────────────────────────────────────┘
       Divergent env variables from local env 
      ┌────────────────┬─────────────────────────────────────┐
      │ SSH_CONNECTION │ 172.23.56.21 53109 172.23.56.157 22 │
      │ TERM           │ xterm                               │
      │ SHLVL          │ 2                                   │
      │ XDG_SESSION_ID │ 4                                   │
      │ SSH_CLIENT     │ 172.23.56.21 53109 22               │
      │ OLDPWD         │ /home/pi/MagicMirror/splashscreen   │
      └────────────────┴─────────────────────────────────────┘
      
      

      An “idea” is that there is a mismatch between node version in my terminal and node version used by mirror.
      Mirror gave me no information about it’s version…

      Maybe I’m completely on a wrong way…
      Can somebody please guide me?

      Thanks a LOT!

      Warmest regards,
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: Cannot access mirror

      @sdetweil …

      ps -ef | ssh
      usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
                 [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
                 [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
                 [-i identity_file] [-J [user@]host[:port]] [-L address]
                 [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
                 [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
                 [-w local_tun[:remote_tun]] destination [command [argument ...]]
      

      …
      I guess you’ve meant a kind of grep …
      From my (very basic) understanding your command tries to pipe process list to ssh …

      BTW: confirmed. Switching the power supply eliminates failure…
      I’m connected whol day long …

      Warmest regards,
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: Cannot access mirror

      @sdetweil ,

      ps -ef | grep ssh
      

      edit: fixed command above

      doesn’t work…
      As you can read from this statement: I’m now able to connect and this is remotely …
      It SEEMS I’ve identified the root cause (I’m not that sure but connection is stable longer than the last times. I’s pretty slow but doesn’t disconnect nearly immediatly).

      I’v just a little bit disassebled and connected another power supply …

      This currently fixes issues …
      Be curious how long this lasts…
      But because ssh as well as VNC were disconnected - insufficient power was the most probable explanation
      (despite I doesn’t have ANY clue why this happens! The power supply is 6months old and I cannot imagine any reason why “insufficient” power causes this behaviour: only disrupt “ingoing” requests…

      • If anybody have an idea - highly welcome!!!)
      posted in Troubleshooting
      R
      rkorell
    • RE: Cannot access mirror

      @sdetweil I‘ve rebooted several times. Sometimes I can get access for a very short time after a reboot, get disconnect and after disconnect not able to re-connect…
      IP is always the same - fixed in router.
      So: really strange …

      Shell access currently not possible, so no testing, sorry. Mirror has to be disassebled - which I can perform earliest tomorrow, because I‘m on the road…

      Regards,
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: Cannot access mirror

      @sdetweil web access e.g. from phone or tablet to pi …

      posted in Troubleshooting
      R
      rkorell
    • Cannot access mirror

      Good mornning,
      Desparately asking you guys:
      Since yesterday I cannot access my mirror remotely anymore….

      Network outgoing seems to work: All modues are showing their actual data.
      Currently even web access is possible (browser access).
      I have a modue showing internet access/IP onscreen, both greeen and valid.

      But I cannot access via: VNC and (more urgent) terminal (ssh) as well as ftp (this as sftp).
      Any idea?

      (Pi5 on Pi power supply 27W & no SD card but NVME with 16/228GB used).
      Power supply pretty new but just ordered a new one …

      Thanks for any suggestion!

      Warmest regards,
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: MMM-Pinfo Help

      @plainbroke
      This time actually not a CSS issue :-)

      If I‘m not going wrong and remember correctly, I had a similar problem with MMM-Pinfo.
      There is a configuration option in the module-declaration in config.js.
      I‘ve set containerSize to 180.
      And valueAlign to right.

      This solved the shown overlayed look …

      And your labels are aligned „center“ - this I would set to left (labelAlign is the parameter)

      HTH,
      Warm regards,
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: MMM-Universal-Pir issues

      @eyesallin said:

      I am using a PI 5 with Linux bookworm

      OK, with Pi5/bookworm the wayland standard config should work…
      Or do you have re-configured to X11?

      You can check right syntax for your system by trial&error on commandline in terminal window.
      If you are working headless (remote terminal) you have to place a „DISPLAY:0“ in front of the command you are trying…

      Regards,
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: MMM-Universal-Pir issues

      @eyesallin ,
      MMM-Universal-Pir needs correct configuration for the screen-on / screen-off commands.
      These commands are dependant of your Pi-Model and OS.
      The default is for bookworm/wayland config.
      If your Pi differs you need the correct command.
      For older OS versions this are commands with xrandr …

      Good luck.
      Regards,
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: MMM-SolarPicture

      @bugphunk cool!
      It would be nice if you post here, how you did this get done…

      Regards,
      Ralf

      posted in Entertainment
      R
      rkorell
    • RE: MMM-Pinfo problem on Rpi5

      @sdetweil thanks.
      Regards,
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: MMM-Pinfo problem on Rpi5

      @ImAStreamer , @kayakbabe ,
      sorry for digging up this old topic but are there any news on this?
      There are several modules for system stats but not in that nice manner of MMM-Pinfo.
      I guess the systeminfo library doesn’t work on PI5…

      Is anybody able to adopt this or has anybody already done this?

      Module search doesn’t give a hint…
      Any idea highly appreciated!
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: Clock Module - Adjust light time to avoid line break

      @dathbe this is a cool idea!
      Thanks.
      Ralf

      posted in Custom CSS
      R
      rkorell
    • RE: Clock Module - Adjust light time to avoid line break

      @sdetweil Dear Sam,
      you are sooo good.
      And so right!

      Thanks again!

      Ralf

      posted in Custom CSS
      R
      rkorell
    • RE: Clock Module - Adjust light time to avoid line break

      @sdetweil Dear Sam,
      as always: You’re right! This works.

      Thanks a lot.

      Today in the morning (before reading your post/suggestion) I’ve found

      .clock .module-content span.bright {
      color: yellow;
      }
       
      

      Interesting enough a width attribute is not working at this identifier - color works…

      Warmest regards,
      Ralf

      posted in Custom CSS
      R
      rkorell
    • Clock Module - Adjust light time to avoid line break

      Dear all,
      I’ve tried desparately the developer’s console to figure it out and tried to get hints in given postings but no luck…
      Since days become longer the day time is written with more letters and so I see a line wrap in the day time of clock module (in this example 11h17m)::
      Screenshot 2025-05-27 101233.png

      Can please anybody help me with aligning this?
      Developers console is nearly unusable because I have an anaolog clock and the transformation hits every second and destroys focus.
      I’ve menaged at least to get the HTML at this section:

      <div class="module-content">
          <div class="clock-grid clock-grid-bottom">
              <div class="clock-circle" style="width: 200px; height: 200px; background: url(&quot;modules/default/clock/faces/face-001.svg&quot;) 0% 0% / 100%; border: rgba(0, 0, 0, 0.1);">
                  <div class="clock-face">
                      <div id="clock-hour" class="clock-hour" style="transform: rotate(388.208deg);"></div>
                      <div id="clock-minute" class="clock-minute" style="transform: rotate(338.5deg);"></div>
                      <div id="clock-second" class="clock-second" style="transform: rotate(150deg); background-color: rgb(220, 20, 60);"></div>
                  </div>
              </div>
              <div class="digital">
                  <div class="date normal medium">Dienstag, 27. Mai 2025</div>
                  <div class="sun dimmed small"><span class="bright"><i class="fas fa-sun" aria-hidden="true"></i> 11h 33m</span><span><i class="fas fa-arrow-up" aria-hidden="true"></i> 05:33</span><span><i class="fas fa-arrow-down" aria-hidden="true"></i> 21:30</span></div>
                  <div class="week dimmed medium">22. Kalenderwoche</div>
              </div>
          </div>
      </div>
      

      But I’m not able to figure out the correct classifier.
      The “easy” approach

      .clock .module-content {
      width: 300;
      }
      

      doesn’t work.
      Any idea?

      Thanks a LOT!
      Warm regards,
      Ralf

      posted in Custom CSS
      R
      rkorell
    • RE: Touch Screen TFT LCD SPI Displays Blank Screen

      @garnoopy Do you have enabled SPI on your pi?
      And: Do you have configured the correct overlays for running the 3,5‘‘ Display?

      Regards,
      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: [ERROR] _ is not defined

      @sdetweil

      i do this for fun, really!

      awesome!
      highly appreciated!

      Ralf

      posted in Troubleshooting
      R
      rkorell
    • RE: new Raspi OS release

      @mumblebaj

      Thanks for information!

      I currently stay with x11 because - at least in my configuration - I wasn’t able to use wayland …
      If this becomes better in further releases I simply would switch…
      Regards,
      Ralf

      posted in General Discussion
      R
      rkorell
    • RE: new Raspi OS release

      @sdetweil said in new Raspi OS release:

      x11 is gone next release

      bad news :-(

      But may things becomes better and the wayland implementation is better in Trixie than in Bookworm…

      Ralf

      posted in General Discussion
      R
      rkorell
    • 1 / 1