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

    Posts

    Recent Best Controversial
    • RE: MMM-NowPlayingOnSpotify: surviving Spotify's 6-month refresh-token expiry (a maintained fork)

      @motdog said:

      http://127.0.0.1:8888 on that laptop I cant connect

      yes, the address is only live for a few seconds during the actual authentication sequence. (if the app actually enables the callback reception)
      otherwise it opens a browser and puts the url and data in the address field, for the user to manually copy the data (usually an access token)

      posted in Showcase
      S
      sdetweil
    • RE: MMM-DBF does not work, no error messages

      @sletrabf this module runs completely in browser
      So two clients will operate independently wherever they are.

      I provide the scripted install and upgrade scripts mentioned in the alternative install section of the doc
      And use pm2 to setup auto start, and commanded restart

      I also provide other scripts to add pm2 , etc if you change your mind after install

      I also provide scripts for backup/restore

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-DBF does not work, no error messages

      @sletrabf error recovery is always a challenge.

      You could access the MagicMirror server from another browser anywhere , just change the address and IpWhitelist config options. Interesting in the module fails there too

      And the pm2 app makes setup of ‘service’ like apps a lot easier

      posted in Troubleshooting
      S
      sdetweil
    • RE: Limit API calls by deactivating the modul based on time?

      @Kastore hide and show are MagicMirror functions
      suspend and resume are the functions the module needs to implement

      MMM-ModuleScheduler calls the MagicMirror hide/show

      You can try it not, but this module will keep making api requests while hidden.

      Maybe you could open an issue on the module GitHub to engage the author to add those routines

      posted in Troubleshooting
      S
      sdetweil
    • RE: Limit API calls by deactivating the modul based on time?

      @Kastore MMM-ModuleScheduler can show/hide based on a schedule…

      when hidden modules should stop accessing apis… many don’t…
      this module does not…

      One could add a couple small routines to support this, every module is different in what they need to do… stop timers, start timers, …

      suspend()
      https://docs.magicmirror.builders/module-development/core-module-file.html#suspend

      and resume()
      https://docs.magicmirror.builders/module-development/core-module-file.html#resume

      posted in Troubleshooting
      S
      sdetweil
    • RE: Everything Updated but Alert shows "11 commits behind on the master branch"

      @langejos 11 commits on what? The base or some module

      posted in Troubleshooting
      S
      sdetweil
    • RE: VM Disk Full - 50 GiB in 4 months

      @JohnGalt no problem… thx… I have not tried to examine them myself either

      posted in Troubleshooting
      S
      sdetweil
    • RE: VM Disk Full - 50 GiB in 4 months

      @JohnGalt you need sudo in front of the mini dump. Line cause the file is in the /var folder

      posted in Troubleshooting
      S
      sdetweil
    • RE: VM Disk Full - 50 GiB in 4 months

      @JohnGalt if you hadn’t erased the logs, the pm2 log MIGHT have had a fault listed…

      2.37 is the current release, 6 months newer… electron at 42.5.2

      supposedly this could help find cause

       Analyze the Crash Dump
      Because Electron code is pre-compiled, looking at a raw dump file yields only unreadable memory addresses. 
      You need to symbolicate the dump using matching Electron debugging symbols.
      
      The CLI Tool (electron-minidump)
          The easiest open-source way to inspect a .dmp file locally is using the electron-   minidump CLI tool. 
      It automatically fetches the matching Electron symbols and outputs a readable stack trace.
      Install the utility:
      sudo  npm install -g electron-minidump
      
      Analyze your file:
      electron-minidump -f /path/to/your/file.dmp
      
      
      posted in Troubleshooting
      S
      sdetweil
    • RE: VM Disk Full - 50 GiB in 4 months

      @JohnGalt well then… electron crashed…

      which MM version are you on
      cd ~/MagicMirror
      grep version package.json

      and for electron
      grep version node_modules/electron/package.json

      posted in Troubleshooting
      S
      sdetweil
    • RE: VM Disk Full - 50 GiB in 4 months

      @JohnGalt in the folder with the core dump files do

      sudo file * >>~/somefile.txt

      then ~/somefile.txt will have a line for each which should contain the failing code name

      from
      https://stackoverflow.com/questions/13308922/find-which-program-caused-a-core-dump-file

      posted in Troubleshooting
      S
      sdetweil
    • RE: VM Disk Full - 50 GiB in 4 months

      @JohnGalt next is who’s dump is it… electron?

      posted in Troubleshooting
      S
      sdetweil
    • RE: VM Disk Full - 50 GiB in 4 months

      @JohnGalt erase the files in the .pm2/logs folder, they are not the cause

      posted in Troubleshooting
      S
      sdetweil
    • RE: VM Disk Full - 50 GiB in 4 months

      @JohnGalt said:

      27348992

      error log is 27 meg… not gig

      after that you would have to use something like ncdu

      ncdu (NCurses Disk Usage) is a fast, text-based command-line tool used to analyze disk space.
      It scans your file system and shows which folders and files use the most space, letting you easily navigate and delete large items directly inside an interactive terminal screen.
      How to Install ncdu
      Ubuntu / Debian: sudo apt install ncdu
      CentOS / RHEL / Fedora: sudo dnf install ncdu or sudo yum install ncdu
      macOS: brew install ncdu
      Arch Linux: sudo pacman -S ncdu
      
      Common Commands
      ncdu — Scan the current folder.  sudo ncdu / --Scan your entire hard drive.
      ncdu /home --Scan a specific folder.  
      ncdu -x --Scan only the current disk (ignore mounted external drives).
      Useful Keyboard Shortcuts
      Up / Down arrows or j / k — Move through the list.
      Enter / Right arrow — Open a folder to see files inside.
      Left arrow — Go back to the parent folder.
      d — Delete the highlighted file or folder.
      posted in Troubleshooting
      S
      sdetweil
    • RE: VM Disk Full - 50 GiB in 4 months

      @JohnGalt from MagicMirror the only thing could be the output of the console log. If debugging is enabled ( logLevel:[ “debug”]), calendar can generate a bunch of output

      If this is a vm, logon and look at the

      .pm2/logs folder
      

      Get the file sizes

      ls -laF
      
      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-KitchenTimer - Touch-friendly countdown timer

      @Niggich you could subtract a fixed delay amount

      Basic Subtraction Code
      You can place this snippet inside a template condition, action, or template sensor. 
      For more advanced examples, visit the official Home Assistant Templating Guide.jinja2{{ (states('sensor.first_number') | float(0)) - (states('sensor.second_number') | float(0)) }}
      
      Use code with caution.
      Important Rules for TemplatesStates are text:
       Home Assistant treats all sensor states as strings (words) by default. Adding | float forces it to act like a number.
      
      Prevent errors with defaults: Use float(0) instead of just float. If your sensor goes offline or shows unavailable, the 0 acts as a safety net so your automation does not crash.
      
      Use parentheses: Wrap each sensor and its filter in parentheses ( ) to ensure the math calculates in the correct order.
      
      posted in Utilities
      S
      sdetweil
    • RE: MMM-KitchenTimer - Touch-friendly countdown timer

      @Niggich awesome feedback

      posted in Utilities
      S
      sdetweil
    • RE: MMM-KitchenTimer - Touch-friendly countdown timer

      @Niggich ok. Good info

      I need to test this myself, but won’t be able to til tomorrow sometime. I also need to use my echo device which is currently not used

      posted in Utilities
      S
      sdetweil
    • RE: MMM-KitchenTimer - Touch-friendly countdown timer

      @Niggich if you examine the traces , what error is reported?

      posted in Utilities
      S
      sdetweil
    • RE: MMM-KitchenTimer - Touch-friendly countdown timer

      @Niggich sorry, this is case sensitive and I had lower case s, see my edit

      posted in Utilities
      S
      sdetweil
    • 1 / 1