Project Sponsors

These users contributed to the project by giving a donation: http://magicmirror.builders/donate

Private

Posts

  • RE: Stop and Start MM on a schedule

    @DarrenO-0 I would suggest having a look at the following post I created. I use it to turn my monitor on and off at scheduled times. Not restarting the Pi though.

    https://forum.magicmirror.builders/topic/19116/having-trouble-with-screen-on-and-off-here-are-some-tips-that-could-help?_=1735999238062

    posted in General Discussion
  • RE: scaling gone wonky

    @cyclonej Seems like a default screen resolution issue for me as some of the other modules are overlapping as well and they look unusually big. Suggest you try a different resolution setting and see if that resolves?

    posted in Troubleshooting
  • RE: Synology Docker Tutorial?

    @techeros Sorry. But you can use the container manager gui in the Web interface for most of the job. No need to pull or remove any images on the shell manually.

    posted in Troubleshooting
  • RE: MMM-MPlayer

    @plainbroke said in MMM-MPlayer:

    @evroom
    Crap on a Cracker,

    Thank you again for this great moduel.

    I like this expression!
    I also waited a long time for this module.
    Only made it available on Github and tweaked it a little.
    When in January the new MM version comes out, I am finally going to reinstall my old setup.
    Good to know that you got it solved.

    posted in Troubleshooting
  • RE: MMM-SantaTracker

    Update for 2024!

    • Latest version has a more robust image loading which should cut down on missing images.
    • Implemented the overTime variable, which will allow you to override the calculated date & time for Santa’s trip. This is useful for testing beforehand.

    Merry Christmas!

    posted in Fun & Games
  • RE: MMM-MPlayer

    @myfingersarecold said in MMM-MPlayer:

    regarding #2 on my pi i didnt have to rotate the mplayer orientation, but i adjusted the output of my pi to portrait and everything behaved but ymmv depending on how it’s setup.

    Could you please tell me how you do the general rotation to portrait ?

    I use the custom.css to get it rotated clockwise.
    As MPlayer is an overlay, like OMXPlayer, it is not affected by this.

    body {
    :
    :
      transform: rotate(-90deg);
      transform-origin: top left;
      width: 100vh;
      height: 100vw;
    :
    :
     }
    

    But of course there are more, potential better, ways of getting it rotated.

    posted in Utilities
  • RE: MMM-MPlayer

    Hi @plainbroke,

    Let’s see what we can do about it.

    First be sure that the URL can be opened and shows your stream:

    VLC Media Player
          File
                Open Network
                   URL: rtsp://192.168.1.32:554/live
                   Open
    

    Then get some data from the logs:

    $ pm2 flush
    $ pm2 restart MagicMirror
    $ sleep 15  (or simply count to 15)
    $ grep 'MMM-MPlayer' ~/.pm2/logs/MagicMirror-*.log
    

    Also adding DEBUG will give some more information and since you only use one module, all output will be related to this module:

    logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"],
    

    Tailing the current log:

    $ pm2 logs MagicMirror --lines 100
    

    Also try if a single stream will work:
    (note, please adjust the indents when and where needed)

    $ vi ~/MagicMirror/config/config.js
    
    {
    	module: 'MMM-MPlayer',
          disabled: false,
          position: 'middle_center',
          header: 'MPlayer',
    	config: {
    	      useTwoWindows: false,
    	      layout: 'row',
    	      monitorAspect: 0,
    	      rotate: -1,
    	      windowSize: { width: 640, height: 360 },
    	      windowPosition: { x: 5, y: 225 },
    	      streamInterval: 30000,
    	      streams: {
    	            window1: [
    		            'rtsp://192.168.1.32:554/live',
          	      ]
    	      }
    	}
    },
    

    I am using an 8 GB RAM Raspberry Pi 4b, perhaps there are memory constrains we are not aware of.
    But when you say the mp4s are working …
    To see the memory usage:
    $ free -h -t

    posted in Troubleshooting
  • RE: MMM-MPlayer

    @KristjanESPERANTO said in MMM-MPlayer:

    @evroom Nice! 🚀 Please add it to the module list 🙂

    Done.

    posted in Utilities
  • RE: MMM-MPlayer

    @myfingersarecold said in MMM-MPlayer:

    I don’t feel like actually uploading it to github, but here is the source code, and an example config.

    I took the liberty to take the provided code, make changes to it and make it available as a public repository:

    https://github.com/evroom/MMM-MPlayer

    My own main purpose for using it, is to setup a new Raspberry Pi (Raspberry Pi 4 Model B), with Debian 12 (bookworm) and the latest MM version (2.30.0).
    Replacing a Pi 3b 32-bit Debian 10 buster setup where OMXPlayer is still working.
    I will be using a single window with a single RTSP stream (for an Axis Network Camera).
    Nothing fancy.

    Best regards,

    E.J.

    posted in Utilities
  • RE: MMM-MPlayer

    @evroom said in MMM-MPlayer:

    @myfingersarecold

    Here two questions:

    1/ What does streamInterval do ?

    2/ Is it possible to rotate the output ?
    I am using my screen in portrait mode and therefore need my RTSP stream to be rotated by 90 degrees.

    To answer my own questions:

    1/ Cycles the streams defined in window1 and/or window2 after the provided interval (in milliseconds).
    Where applicable, the streams will start from the beginning again (for example for mp4 videos).

    2/ Yes, this is possible using the -vf rotate=[0-3] option and adjusting the windowPosition values.

    posted in Utilities