MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

TV Tuner



  • Howdy,

    Has any added a TV tuner to their setup? I would like to add one to play the news in the morning.

    Thanks



  • I got streaming from a Linux SAT receiver with enigma2 working, using the module MMM-RTSPStream-
    But you will need to supply a bit more information than rather ‘a TV tuner’.



  • I will have to look at that, thanks, but the tuner is something like this -> http://www.hauppauge.com/pages/products/data_hvr955q.html

    My other idea is to just use a TV as the monitor. Might make things easier.



  • @evroom said in TV Tuner:

    I got streaming from a Linux SAT receiver with enigma2 working, using the module MMM-RTSPStream-
    But you will need to supply a bit more information than rather ‘a TV tuner’.

    I am upping this because this is EXACTLY what I was looking for.

    I’ve got a Vu+ Duo² and I want to include a streaming frame into my next coming MagicMirror project.

    Can you tell me if I have to setup the wanted channels into the config script or if I can switch them live by i.e using Google Assistant?

    At the end of the day I just want to choose between 2-3 news TV channels and 3 radio channels. 🙂



  • @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
        },
      }
    },
    


  • @evroom said in 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
        },
      }
    },
    

    Thank you for your precious reply as I was just going to PM you asking exactly for that information!

    I still have to see what the Google Assistant integration can do with channels switching, but it wouldn’t be so bad at the end if I will be able to see only one channel. 🙂

    Going to try it in the next few hours when I finally get all the stuff needed for the smart mirror.



  • So I got everything running (but HD channels).

    Now @evroom (or @shbatm ) do you know if there is a way to get rid of the white frame under the video streaming? 😬

    alt text



  • 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: [”.



  • 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.



  • @evroom said in 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: [”.

    {
    		    module: "MMM-RTSPStream",
    		    position: "bottom_right",
    		    // header: "Sky TG24",
    		        config: {
    		        autoStart: true,
    		        rotateStreams: false,
    		        rotateStreamTimeout: 10,
    		        moduleWidth: 390,
    		        moduleHeight: 219,
    		        localPlayer: 'omxplayer',
    		        remotePlayer: 'none',
    		        showSnapWhenPaused: false,
    		        remoteSnaps: false,
    		        stream1: {
    		            // name: 'Sky TG24',
    		            // url: 'http://192.168.1.6:8001/1:0:1:5:7918:217C:EEEE0000:0:0:0:',
    		            name: 'RAI 3 TGR Puglia',
    		            url: 'http://192.168.1.6:8001/1:0:1:D4B:8800:13E:EEEE0000:0:0:0:',
    		            // name: 'RAI 3 HD',
    		            // hdUrl: 'http://192.168.1.6:8001/1:0:1:2191:5:13E:EEEE0000:0:0:0:',
    		            protocol: "tcp",
    		            frameRate: 'undefined',
    		            width: 390,
    		            height: 219,
    		            }
    		        }
    		},
    

    Hmm for some reason the log looks empty. 🤔

    pi@raspberrypi:~ $ pm2 logs MagicMirror --lines 100
    [TAILING] Tailing last 100 lines for [MagicMirror] process (change the value with --lines option)