MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    TV Tuner

    Scheduled Pinned Locked Moved Unsolved Requests
    20 Posts 6 Posters 10.5k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      pbrunson
      last edited by

      Howdy,

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

      Thanks

      1 Reply Last reply Reply Quote 0
      • evroomE Offline
        evroom
        last edited by

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

        MagicMirror version: 2.33.0
        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        Test environment:
        MagicMirror version: v2.33.0
        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        Cr4z33C 1 Reply Last reply Reply Quote 1
        • P Offline
          pbrunson
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • Cr4z33C Offline
            Cr4z33 @evroom
            last edited by Cr4z33

            @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. :)

            1 Reply Last reply Reply Quote 0
            • evroomE Offline
              evroom
              last edited by

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

              MagicMirror version: 2.33.0
              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              Test environment:
              MagicMirror version: v2.33.0
              Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              Cr4z33C 1 Reply Last reply Reply Quote 0
              • Cr4z33C Offline
                Cr4z33 @evroom
                last edited by

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

                1 Reply Last reply Reply Quote 0
                • Cr4z33C Offline
                  Cr4z33
                  last edited by Cr4z33

                  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? :grimacing_face:

                  alt text

                  1 Reply Last reply Reply Quote 0
                  • evroomE Offline
                    evroom
                    last edited by

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

                    MagicMirror version: 2.33.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.33.0
                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Cr4z33C 1 Reply Last reply Reply Quote 0
                    • evroomE Offline
                      evroom
                      last edited by

                      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.

                      MagicMirror version: 2.33.0
                      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

                      Test environment:
                      MagicMirror version: v2.33.0
                      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

                      Cr4z33C 1 Reply Last reply Reply Quote 0
                      • Cr4z33C Offline
                        Cr4z33 @evroom
                        last edited by

                        @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. :thinking_face:

                        pi@raspberrypi:~ $ pm2 logs MagicMirror --lines 100
                        [TAILING] Tailing last 100 lines for [MagicMirror] process (change the value with --lines option)
                        
                        1 Reply Last reply Reply Quote 0
                        • Cr4z33C Offline
                          Cr4z33 @evroom
                          last edited by Cr4z33

                          @evroom said in 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.

                          Sorry I am still a Linux/Raspberry noob so I couldn’t figure out how to edit custom.css with that script.
                          However this is how it looks right now:

                          /*****************************************************
                           * Magic Mirror                                      *
                           * Custom CSS                                        *
                           *                                                   *
                           * By Michael Teeuw http://michaelteeuw.nl           *
                           * MIT Licensed.                                     *
                           *                                                   *
                           * Add any custom CSS below.                         *
                           * Changes to this files will be ignored by GIT. *
                           *****************************************************/
                          
                           body {
                           	
                           }
                          
                          

                          Last but not least thank you very much for your support! :flexed_biceps_medium-light_skin_tone:

                          PS for the forum admins: for some reason I am not getting emails for new replies although I am subscribed and the spam folder is empty!

                          1 Reply Last reply Reply Quote 0
                          • evroomE Offline
                            evroom
                            last edited by

                            @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);
                            }
                            

                            MagicMirror version: 2.33.0
                            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                            Raspbian GNU/Linux 12 (bookworm)

                            Test environment:
                            MagicMirror version: v2.33.0
                            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                            Raspbian GNU/Linux 12 (bookworm)

                            Cr4z33C 2 Replies Last reply Reply Quote 0
                            • Cr4z33C Offline
                              Cr4z33 @evroom
                              last edited by Cr4z33

                              @evroom a-ha alright thanks!

                              1 Reply Last reply Reply Quote 0
                              • el97E Offline
                                el97
                                last edited by

                                Im not sure if the request is solved or not but could this be something that can help you along the way? :)
                                https://pimylifeup.com/news-raspberry-pi-tv-hat/

                                Cr4z33C 1 Reply Last reply Reply Quote 0
                                • Cr4z33C Offline
                                  Cr4z33 @el97
                                  last edited by Cr4z33

                                  @el97 maybe it could help the OP, but certainly not me as I already have a TV system (Vu+ Duo²) to be used. ;)

                                  1 Reply Last reply Reply Quote 0
                                  • richland007R Offline
                                    richland007
                                    last edited by

                                    @pbrunson I read your post and it peaked my interest … the other guys have it easy with the Linux sat boxes that can stream directly Like Enigma Vu+… They brought me back memories of the DreamBox i had when i was living in Europe :) i used to stream all content i could get to my office.

                                    Anyhow here in USA i have a media center server centrally located that has a TV tuner… an internal Hauppauge card, of which i was only using its AV input to catch a quad view feed of my security cameras. Than through an instance of Yawcam (https://yawcam.com/) web-server I will take that tuner input and i would display that though MMM-iFrame on the MM.
                                    (first of all it took me forever to find out what the rtsp streams of my SecCam DVR were but once i found them than i did not want to clog my RPi into processing those individual rtsp streams so the quad view works just fine)

                                    So your post of watching the news actually pushed me to utilize the actual tuner part of the card and stream the news also to my mirror in the morning (granted that there would be no channel changes but whatever you have left it at from the previous use)

                                    Although Yawcam would let you stream the tuner feed just fine (and for my case there is also a way to run two instances of it one for the tuner and one for an additional USB AV capture card i ordered through Amazon where i would now connect my security cameras quad view) … the catch is that there is no audio support.

                                    But what do I know…by accident i found this on youtube (https://www.contaware.com/contacam.html) it has audio support and lets you use multiple AV inputs on one instance and has a web-server so you can port to it for MM iframes.
                                    I have not tried it yet, cause my usb card for the cameras has not arrived yet, so i may be speaking ahead of myself but i am confident it will work.

                                    Sorry for the long rambling but i think it is an exciting addition to MagicMirror and a great idea on your part.
                                    I hope my findings help you just a bit.
                                    Denis

                                    A 1 Reply Last reply Reply Quote 0
                                    • Cr4z33C Offline
                                      Cr4z33 @evroom
                                      last edited by

                                      @evroom by the way did you find by chance a way to switch channel (i.e by voice command) with the addition of another module? :D

                                      1 Reply Last reply Reply Quote 0
                                      • evroomE Offline
                                        evroom
                                        last edited by

                                        @Cr4z33, no, sorry, didn’t pursue this as I do not need such a function myself.

                                        MagicMirror version: 2.33.0
                                        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                        Raspbian GNU/Linux 12 (bookworm)

                                        Test environment:
                                        MagicMirror version: v2.33.0
                                        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                        Raspbian GNU/Linux 12 (bookworm)

                                        Cr4z33C 1 Reply Last reply Reply Quote 0
                                        • Cr4z33C Offline
                                          Cr4z33 @evroom
                                          last edited by

                                          @evroom alright no problem. ;)

                                          1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            AxLed Module Developer @richland007
                                            last edited by

                                            @richland007 said in TV Tuner:

                                            @pbrunson I read your post and it peaked my interest … the other guys have it easy with the Linux sat boxes that can stream directly Like Enigma Vu+… They brought me back memories of the DreamBox i had when i was living in Europe i used to stream all content i could get to my office.

                                            @richland007
                                            Maybe my new module is something for you:
                                            MMM-Dreambox

                                            Regards

                                            AxLED

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1 / 1
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy