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 476
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: MMM-RTSPStream not showing video

      @vonarstonehelm

      Hi,

      it is has been some time since I used MMM-RTSPStream, but you can try following and provide some more info.

      $ which omxplayer
      
      $ vcgencmd codec_enabled MPG2
      

      omxplayer only logs when asked for (–genlog).

      Try running omxplayer from the command line first:

      $ cd
      $ rm -f omxplayer.log
      
      $ omxplayer --genlog --win "0 0 800 480" rtsp://admin:*******@192.168.1.242
      
      or:
      
      $ omxplayer --genlog --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win "0 0 800 480" rtsp://admin:*******@192.168.1.242
      
      $ ls -als omxplayer.log
      
      $ sudo find . -name omxplayer.log
      

      And it appears you have a few mistakes / omitted parameters in your config.js:

      moduleWidth: 590,
      moduleHeight: 332,
      
      ffmpegPort: 9999,
      
      width: 590,
      height: 332,
      

      port: 9999, is not a valid parameter.

      Furthermore, your URL seems a bit basic, but that probably depends on the camera.
      For example, for my Axis camera I need this:

      rtsp://user:password@192.168.178.56/axis-media/media.amp?resolution=640x360
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer

      By coincidence there was a new post regarding the new module:
      https://github.com/shbatm/MMM-Remote-Control
      I do not use this one.
      Neither does AxLed, so we can be on to something.

      posted in Entertainment
      evroomE
      evroom
    • RE: [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer

      @cr4z33
      I think this one
      https://github.com/Jopyth/MMM-Remote-Control
      Cannot find the one from shbatm…

      posted in Entertainment
      evroomE
      evroom
    • RE: [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer

      @Cr4z33
      That explains the missing stream.
      You are not getting to the DB-PLAY routine.

      To me it looks like you have an issue with MMM-Remote-Control.
      For example, I almost always get success, provide the IP is right, but the notification can be wrong

      {"status":"success"}
      

      Can you try this:

      $ cd /home/pi/MagicMirror/modules/MMM-Remote-Control
      $ git pull
      $ git status
      $ npm install
      

      And then restart mm and try again.

      You can also put a debug line in the DB-STOP call and do

      http://< MM_IP >:8080/remote?action=NOTIFICATION&notification=DB-STOP
      
      $ vi node_helper.js
      :
      :
                      if (notification === "DB-STOP") {
      console.log('DB-STOP: stop the stream');
                              exec('pkill omxplayer', null);
                      }
      :
      :
      

      If you do not see this in the pm2 logs, then MMM-Remote-Control seems to be the culprit or the communication between the 2 modules.
      But as it works for both AxLed and me …

      posted in Entertainment
      evroomE
      evroom
    • RE: [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer

      @cr4z33 said in [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer:

      What shall I do?

      After both lines you need to put the console.log line, one with (1) and one with (2), see my post:

      Locate:
      
      exec('omxplayer '
      
      Append this line:
      
      console.log('DB-PLAY(1): omxplayer '+self.config.omxargs+self.trimPort(self.config.apiBase)+':8001/'+payload[0]);
      
      
      Locate next:
      
      exec('omxplayer '
      
      Append this line:
      
      console.log('DB-PLAY(2): omxplayer '+self.config.omxargs+self.trimPort(self.config.apiBase)+':8001/'+payload[0]);
      
      posted in Entertainment
      evroomE
      evroom
    • RE: Save performance when rotating screen e.g. on Raspberry Pi

      Okay, found it.

      In my /boot/config.txt I had the width and height set to 900 and 1600 and this has to be now 1600 and 900.
      This is working:

      display_hdmi_rotate=0
      framebuffer_width=1600
      framebuffer_height=900
      

      Works now.

      Only need to modify the omxplayer lines to have those streams rotated too.

      posted in Showcase
      evroomE
      evroom
    • RE: [MMM-Dreambox] to connect a Dreambox or a Enigma2 Receiver (like VU or VU+) to MagicMirror and stream stations via omxplayer

      @Cr4z33

      Try this:

      $ cd ~/MagicMirror/modules/MMM-Dreambox/
      
      $ cp -p node_helper.js node_helper.js.orig
      
      $ vi node_helper.js
      
      Locate:
      
      exec('omxplayer '
      
      Append this line:
      
      console.log('DB-PLAY(1): omxplayer '+self.config.omxargs+self.trimPort(self.config.apiBase)+':8001/'+payload[0]);
      
      
      Locate next:
      
      exec('omxplayer '
      
      Append this line:
      
      console.log('DB-PLAY(2): omxplayer '+self.config.omxargs+self.trimPort(self.config.apiBase)+':8001/'+payload[0]);
      
      
      $ pm2 restart mm
      
      $ pm2 logs
      
      Select a service and play that service:
      
      http://< MM_IP >:8080/remote?action=NOTIFICATION&notification=DB-SERVICE-NEXT
      
      http://< MM_IP >:8080/remote?action=NOTIFICATION&notification=DB-PLAY
      

      In pm2 logs should appear:

      0|mm  | DB-PLAY(1): omxplayer  --genlog --vol -6000 --win 0,625,590,957 --live http://192.168.178.47:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
      

      or:

      0|mm  | DB-PLAY(2): omxplayer  --genlog --vol -6000 --win 0,625,590,957 --live http://192.168.178.47:8001/1:0:19:283D:3FB:1:C00000:0:0:0:
      

      In my case I see DB-PLAY(2).

      If you see nothing then it is back to the drawing board.
      Need to see what works and what not and where in the code.

      posted in Entertainment
      evroomE
      evroom
    • RE: Save performance when rotating screen e.g. on Raspberry Pi

      @ptrk95 said in Save performance when rotating screen e.g. on Raspberry Pi:

      Tell me if that worked for you.

      Almost, but not quite.
      It does rotate clock wise, but it is centered.
      In Excel analogy: vertical alignment: center.
      I would need ‘top’.

      This is my custom.css, probably the other settings interfere:

      body {
        margin: 0;
        position: absolute;
        transform: rotate(-90deg);
        transform-origin: top left;
        width: 100vh;
        height: 100vw;
      
        object-fit: cover;
        top: 100vh;
              visibility: visible;
       }
      
      .region.top.left {
        width: 60%;
      }
      
      .region.middle.center {
        width: 60%;
      }
      
      .region.bottom.left {
        width: 60%;
      }
      
      .MMM-HTMLBox {
        font-size: 18px;
        line-height: 22px;
      }
      .MMM-RTSPStream header {
      
        text-align: left;
      }
      
      .MMM-RTSPStream .innerWrapper {
        border-style: none;
        //border: 1px solid red;
      }
      

      I want the left side modules to occupy 60% and the right side modules 40%.
      Maybe I have to interpret top, middle and bottom different now ?

      posted in Showcase
      evroomE
      evroom
    • RE: Save performance when rotating screen e.g. on Raspberry Pi

      @ptrk95 said in Save performance when rotating screen e.g. on Raspberry Pi:

      and want to rotate the screen you can rotate

      Did you counter clockwise rotated you screen ?
      And therefore did ``transform: rotate(90deg);```??

      I originally rotated my screen clock wise (so the top now is on the right hand side) using /boot/config.txt and display_hdmi_rotate=3.
      This works fine.

      When I use your css example and take out the /boot/config.txt line, it does not work right.
      I figured I need rotate(270deg), but then I do not see anything.

      Besides that, the omxplayer modules need to be adjusted too (–orientation parameter), so I reverted back to my old method.

      My question: can you setup your screen so that it rotates this way that you see everything upside down (to simulate a clockwise rotation in your case) ??
      And then share the css code.

      posted in Showcase
      evroomE
      evroom
    • RE: LED Monitor Vertical Setup How??

      Found it.

      https://forum.magicmirror.builders/topic/9707/save-performance-when-rotating-screen-e-g-on-raspberry-pi

      Looks like this is a better option.
      Will give it a try myself.

      posted in Troubleshooting
      evroomE
      evroom
    • 1 / 1