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

    Posts

    Recent Best Controversial
    • RE: MMM-Mplayer video issues

      @ge

      A pity it does not work for you.
      Strange that is only happens after a several hours
      But mplayer is rather old, perhaps that is the primary issue.

      Still, I tried it on my Pi 3b with 1Gb RAM and it runs well.
      It is 3 to 5 seconds lagging.
      Like the stream on my P4b with 8Gb.
      It also does not seem very memory hungry.

      Pi 3b is steaming now for over 2 hours, so I will need to look later again to see if it got messed up.
      The Pi 4b is streaming for 2 weeks straight now, without issues.

      To me it looks more like a camera issue, but if you say that other players have no issues …
      Somehow mplayer does not like your rtsp stream, or it is a combination of factors.

      I have found that there is a config file, where you can set options.
      Try out some options (need to restart MagicMirror after every change).
      For example try nocache first.
      Then try cache=65536.
      The option nosound is always good (can be set in the MMM-Mplayer options too, if not already done so).
      The bandwidth option is just a shot in the dark.

      $ vi ~/.mplayer/config
      # Write your default config options here!
      
      # No cache
      nocache=yes
      
      # Cache size in kBytes (4MB / 8MB / 16MB / 64MB)
      # cache=4096
      # cache=8192
      # cache=16384
      # cache=65536
      
      # Do not play/encode sound
      nosound=yes
      
      # Bandwidth (10MB / 100MB / 1000MB)
      # bandwidth=80000000
      bandwidth=100000000
      # bandwidth=1000000000
      

      What also can be the case, is that the windowSize is not matching your stream resolution.
      This can cause issues as it needs to recode this portion.
      Try:

      windowSize: { width: 960, height: 540 },
      

      for a 1920x1080 (16:9) stream.

      That is all I can think of.
      Good luck.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: pm2 doesnt work with crontab

      @plainbroke said in pm2 doesnt work with crontab:

      @evroom,
      I get that nothing is found, when I run either of your suggestions.

      The journalctl -f shows the current activities.
      Simular to tail -f <filename>.
      So when there are none, you will see none.
      Use that when you know that a cron job is going to occur anytime soon.
      The --since "1 hour ago" searches for activities in the last hour.
      Change to, for example --since "24 hours ago" for activities in the last 24 hours.
      When nothing comes out, then indeed nothing happened (during the time period you are searching in).

      Other --since options:

      "today"
      "00:20"
      "2025-11-12"
      "2025-11-12 07:30:00"
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: pm2 doesnt work with crontab

      About /var/log/syslog.
      Debian does not use that anymore, already since a while.
      As far as I understand it, you will need to get familiar with journalctl.
      For cron jobs try this:

      $ journalctl --since "1 hour ago" --unit cron.service
      
      $ journalctl -f -u cron.service
      

      Happy hunting.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: MMM-Hoymiles-Wifi

      @Jose1701

      No, sorry, no idea.
      What Sam says, but that needs knowledge.
      But I opened an issue/request, so let’s see if it will be granted:
      https://github.com/CuddlyCow/MMM-HoymilesPVMonitor/issues

      posted in Development
      evroomE
      evroom
    • RE: MMM-Hoymiles-Wifi

      @Jose1701

      Remove the old module from the config:

      $ vi ~/MagicMirror/config/config.js
      
      Remove the "MMM-Hoymiles-Wifi" config, or set:
      
          module: "MMM-Hoymiles-Wifi"
          disabled: true,
      
      Delete HoymilesWifi from pm2:
      
      $ pm2 stop HoymilesWifi
      $ pm2 delete HoymilesWifi
      $ pm2 save
      
      If desired, completely remove the old module:
      
      $ cd ~/MagicMirror/modules/
      $ rm -rf MMM-Hoymiles-Wifi
      

      Install MMM-HoymilesPVMonitor:

      $ cd ~/MagicMirror/modules
      
      $ git clone https://github.com/CuddlyCow/MMM-HoymilesPVMonitor.git
      
      $ cd MMM-HoymilesPVMonitor
      
      $ git branch
      * main
      
      $ git remote -v
      origin	https://github.com/CuddlyCow/MMM-HoymilesPVMonitor.git (fetch)
      origin	https://github.com/CuddlyCow/MMM-HoymilesPVMonitor.git (push)
      
      $ which hoymiles-wifi
      /home/admin/.local/bin/hoymiles-wifi
      
      $ echo $PATH
      /home/admin/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
      
      $ vi ~/MagicMirror/config/config.js
      
        {
          module: "MMM-HoymilesPVMonitor",
          disabled: false,
          header: "PV Monitor",
          position: "top_left",
          config: {
            dtuIp: "192.168.178.50",        // IP address of your Hoymiles DTU
            maxPower: 800,                  // Maximum system power in watts
            updateInterval: 5 * 60 * 1000   // Update interval in milliseconds (default: 5 minutes)
          }
        }
      
      
      $ grep 'dtuIp' ~/MagicMirror/config/config.js
            dtuIp: "192.168.178.50",        // IP address of your Hoymiles DTU
      
      
      $ ls -als public/history_daily.json
      4 -rw-r--r-- 1 admin admin 115 Nov  6 08:47 public/history_daily.json
      
      $ cat public/history_daily.json
      [
        {
          "timestamp": "2025-11-06 08:47",
          "power": 40,
          "energy_daily": 0.03,
          "energy_total": 0.8
        }
      
      $ pm2 flush
      
      $ pm2 restart MagicMirror
      
      $ pm2 status MagicMirror
      ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0  │ MagicMirror    │ default     │ 2.33.0  │ fork    │ 26202    │ 4m     │ 3    │ online    │ 0%       │ 2.1mb    │ admin    │ enabled  │
      └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      
      $ pm2 logs MagicMirror --lines 100
      
      0|MagicMir | [2025-11-06 08:47:43.474] [INFO]  [MMM-HoymilesPVMonitor.js:17:9] MMM-HoymilesPVMonitor started with DTU-IP: 192.168.178.50
      :
      :
      0|MagicMir | [2025-11-06 08:47:49.226] [LOG]   [MMM-HoymilesPVMonitor] Running Python script: python3 /home/admin/MagicMirror/modules/MMM-HoymilesPVMonitor/dtu_data.py --ip 192.168.178.50 --max 800 --out /home/admin/MagicMirror/modules/MMM-HoymilesPVMonitor/public/history_daily.json
      0|MagicMir | [2025-11-06 08:47:51.682] [LOG]   [MMM-HoymilesPVMonitor] Python script output: [WARNING] Could not load history: Expecting value: line 2 column 1 (char 1)
      0|MagicMir | [2025-11-06 08:47] [INFO] Live DTU data appended: {'timestamp': '2025-11-06 08:47', 'power': 40, 'energy_daily': 0.03, 'energy_total': 0.8}
      :
      :
      0|MagicMir | [2025-11-06 08:52:42.141] [LOG]   [MMM-HoymilesPVMonitor] Running Python script: python3 /home/admin/MagicMirror/modules/MMM-HoymilesPVMonitor/dtu_data.py --ip 192.168.178.50 --max 800 --out /home/admin/MagicMirror/modules/MMM-HoymilesPVMonitor/public/history_daily.json
      0|MagicMir | [2025-11-06 08:52:43.287] [LOG]   [MMM-HoymilesPVMonitor] Python script output: [2025-11-06 08:52] [INFO] Live DTU data appended: {'timestamp': '2025-11-06 08:52', 'power': 41, 'energy_daily': 0.03, 'energy_total': 0.8}
      
      $ cat public/history_daily.json
      [
        {
          "timestamp": "2025-11-06 08:47",
          "power": 40,
          "energy_daily": 0.03,
          "energy_total": 0.8
        },
        {
          "timestamp": "2025-11-06 08:52",
          "power": 41,
          "energy_daily": 0.03,
          "energy_total": 0.8
        }
      

      Tested on:

      $ cat /proc/device-tree/model; echo
      Raspberry Pi 3 Model B Plus Rev 1.3
      
      $ vcgencmd get_config total_mem
      total_mem=1024
      
      $ grep version ~/MagicMirror/package.json
      	"version": "2.33.0",
      
      posted in Development
      evroomE
      evroom
    • RE: MMM-Hoymiles-Wifi

      @Jose1701

      Yeah, stopped is not good.
      I will need to get it working myself before I can give more useful information on what to check.
      Will keep you posted.

      posted in Development
      evroomE
      evroom
    • RE: MMM-Hoymiles-Wifi

      @Jose1701

      >> You installed that already, so no need to install it again.
      >>The schris88 requirements.txt contains the hoymiles-wifi package.
      

      If you want to repeat it under the new module name, then you will need to copy the requirements.txt file from the previous module.
      But again, since you already did this, no need to repeat.

      posted in Development
      evroomE
      evroom
    • RE: MMM-Hoymiles-Wifi

      @Jose1701

      You installed that already, so no need to install it again.
      Probably using:

      python -m pip install -r requirements.txt --break-system-packages
      

      The schris88 requirements.txt contains the hoymiles-wifi package.

      posted in Development
      evroomE
      evroom
    • RE: MMM-Hoymiles-Wifi

      @Jose1701

      You also might try this module:

      https://github.com/CuddlyCow/MMM-HoymilesPVMonitor

      I may give it a try myself.

      posted in Development
      evroomE
      evroom
    • RE: MMM-Hoymiles-Wifi

      @Jose1701

      First of all, where I write

      /home/admin/
      

      please use

      ~/
      

      (tilde sign)

      And can you please send me:

      cd ~/MagicMirror/modules/MMM-Hoymiles-Wifi
      git branch
      git remote -v
      

      Every time you get that port in use error, run the long command to see what programs are using the port.
      And of course do not use HoymilesWifi.sh when it is also active under pm2.

      I am starting to wonder if the module works at all.
      I finally got a picture, but it showed an error in it.

      posted in Development
      evroomE
      evroom
    • 1
    • 2
    • 3
    • 4
    • 5
    • 49
    • 50
    • 1 / 50