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: TV Tuner

      @Cr4z33,

      You can put the code end the end of the file, so after the body stuff.
      If you are not familiar with vi, you can use nano:

      $ nano /home/pi/MagicMirror/css/custom.css
      

      I have made some changes in the body part, to change the screen margins, etc.

      body {
             margin: 10px;
             height: calc(100% - 10px);
             width: calc(100% - 10px);
      }
      
      posted in Requests
      evroomE
      evroom
    • RE: TV Tuner

      Hi,

      Try this:

      # vi /home/pi/MagicMirror/css/custom.css
      :
      :
      .MMM-RTSPStream .innerWrapper {
        border-style: none;
      }
      
      # pm2 restart MagicMirror
      

      I would still try to have the video window and the module window overlap each other, as it perhaps may influence the position and aligning of other modules.

      posted in Requests
      evroomE
      evroom
    • RE: TV Tuner

      Hi,

      I remember it took me quite a while to have it to my likings (size and position of the window(s)).
      The width and height of the stream defines the size of your video.
      The width and height in the config defines the place of the stream and what you actually see.
      A bit difficult to explain.
      Works like a “sjabloon”, template.

      Could you show your MMM-RTSPStream config settings and also a part of the ‘pm2 logs MagicMirror’ output ?
      Where it says: “Starting stream stream1 with args: [”.

      posted in Requests
      evroomE
      evroom
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      Hi @surger13 ,

      You do not have the api_key specified.
      The README says:

      api_key: false,
      

      But for me this does not work.
      I registered at https://www.football-data.org/client/register and the resulting api_key is working fine.

      api_key: 'xxxxd62e29754e10b56029399458xxxx',
      

      This is a fake key, use the one you get after registering.

      Good luck.

      posted in Sport
      evroomE
      evroom
    • RE: TV Tuner

      @Cr4z33
      Please find below an example for streaming from an Enigma2 box.
      The most important line is the url.
      The other lines are custom-made for my 2 camera streams.
      The url is taken from VLC, which I use to stream SAT TV to my PC.

      A few remarks on what I experienced:

      For Raspberry Pi, you may need the MPG2 license in order to be able to stream the satellite TS stream.

      The Raspberry Pi 3 Model 3 and omxplayer can only handle 1 TS stream, as it appears to be the case.
      And a maximum 3 RTSP camera streams.
      Perhaps more powerful HW can handle more.

      I did not look into the possibility of choosing between streams / channels.
      This needs some additional programming or even forking the code to make it specific for TS streams.

      Hope it helps.

      config.js :

      {
        module: "MMM-RTSPStream",
        disabled: false,
        position: "middle_center",
        header: "Axis Security Monitor",
        config: {
          autoStart: true,
          rotateStreams: false,
          moduleWidth: 900,
          moduleHeight: 364,
          localPlayer: 'omxplayer',
          remotePlayer: 'none',
          showSnapWhenPaused: false,
          remoteSnaps: false,
          stream1: {
          name: 'SAT-TV',
          url: 'http://192.168.178.28:8001/1:0:19:2B66:3F3:1:C00000:0:0:0:', // ZDF HD
            protocol: "tcp",
            width: 590,
            height: 332
          },
        }
      },
      
      posted in Requests
      evroomE
      evroom
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      @strawberry-3-141
      Thanks, works like a charm.

      Any possibility to introduce a rotation option, in order to rotate the standings of the leagues in “show” or “leagues” ?

      posted in Sport
      evroomE
      evroom
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      Hi,

      Great job on version 2.0.
      I have it running.
      Added Eredivisie and some logos; all fine.

      Just one question.
      In your example your header is left aligned and shows “1. BUNDESLIGA 2015/16”.
      Not updated to show the version 2.0 example.
      When I choose the Bundesliga I just get “BUNDESLIGA” and it is right aligned.
      How do I get it at least left aligned ?
      I tried adding this to the custom.css, but it doesn’t work:

      .MMM-soccer .header {
          text-align: left;
      }
      
      posted in Sport
      evroomE
      evroom
    • RE: omxplayer overlay

      The MPG2 license I most probably needed in order to be able to stream the satellite TS stream.
      With the codec disabled, I am still able to play the .mov and .mp4 files.

      In general the rule applies: when you can play / stream a source using omxplayer from the command-line, you should be able to play that source via MM (as long as the module used passes the right omxplayer parameters).

      If you want to pursue the issue further, you can add the --genlog parameter in order to generate the omxplayer.log file:

      cd /MagicMirror/modules/MMM-RTSPStream
      $ vi node_helper.js
      
      Edit line 113:
      
      args.unshift("--genlog", "--avdict", "rtsp_transport:tcp");
      
      Restart MM.
      
      $ ls -als /home/pi/MagicMirror/omxplayer.log
      

      Perhaps this log will reveal why the file does not play.

      posted in Development
      evroomE
      evroom
    • RE: omxplayer overlay

      To be honest, I do run MM 2.4.1, but did not activate OpenGL. That is to say, I commented out
      #dtoverlay=vc4-fkms-v3d
      The electron processes do not show extreme usage and the temperature is around 48 celsius (25 celsius room temperature).
      I have 2 camera streams running.

      And I fail to see the difference between streaming via a rtsp url and from the SD card.

      It just now pops up in my head; do you have the MPG2 license?
      Try this to see if it is enabled:

      # vcgencmd codec_enabled MPG2
      
      posted in Development
      evroomE
      evroom
    • RE: omxplayer overlay

      For me this works:

      url: '/home/pi/Videos/MoonEclipse.mp4',
      

      So no ‘rtsp:’.
      But I do not know if this sets the right parameters for this purpose, are more suited for CAM streaming I suppose:

      |mm       | Starting stream stream1 with args: [
      1|mm       |     "--avdict",
      1|mm       |     "rtsp_transport:tcp",
      1|mm       |     "--win",
      1|mm       |     "33, 620, 513, 890",
      1|mm       |     "--live",
      1|mm       |     "--video_queue",
      1|mm       |     "4",
      1|mm       |     "--fps",
      1|mm       |     "30",
      1|mm       |     "/home/pi/Videos/MoonEclipse.mp4"
      1|mm       | ]
      

      Makes my Pi very slow too, but that is because I put the file on the SD, which is not a fast medium in my case.

      posted in Development
      evroomE
      evroom
    • 1 / 1