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.

    Show IP camera in Magic Mirror

    Scheduled Pinned Locked Moved Requests
    17 Posts 7 Posters 11.5k Views 8 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.
    • D Offline
      drx1984 @Cr4z33
      last edited by

      @Cr4z33 said in Show IP camera in Magic Mirror:

      MMM-FreeboxTV

      you mean the module MMM-FreeBox-Monitor?
      Doesn’t work either.

      1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer @drx1984
        last edited by

        @drx1984 Ahh! I originally had one of those in use. Using OMXPlayer directly is likely the best option.

        What I’ve done is block out a section of my screen using a custom module that’s not published, then, using a bash script, I launch OMX Player with a command line like:

        omxplayer --avdict rtsp_transport:tcp --live --orientation [rotation] --win "[X1 Y1 X2 Y2]" rtsp://[URL]
        

        “Rotation” is the rotation of your monitor, 0 (Normal), 90 (right portrait), 180 (upside down), 270 (left portrait)
        “X1” is the left X position NOT CONSIDERING ROTATION.
        “X2” is the right X position NOT CONSIDERING ROTATION.
        “Y1” is the top Y position NOT CONSIDERING ROTATION.
        “Y2” is the bottom Y position NOT CONSIDERING ROTATION.

        omxplayer will then launch on top of the mirror screen.

        Example:

        omxplayer --avdict rtsp_transport:tcp --live --orientation 90 --win "1500 325 1915 1075" rtsp://U:P@A/2/h265/major
        

        My screen is rotated right portrait, so I rotate OMX to match. (90)
        The window I need cut out is 700x415 pixels, my resolution is 1080x1920. You’ll notice I have it 5px off the edge to assure I see everything, and I’ve got it in the upper right corner of my display. my camera I use now instead of the Reolink is using that URL, even though it puts out a H264 stream at the moment (I’m looking for an option to go to H265 as h264 uses flash for display)

        The "E" in "Javascript" stands for "Easy"

        1 Reply Last reply Reply Quote 0
        • J Offline
          jasondreher
          last edited by

          I am using iFrame. But also using BlueIris to stream the IP camera to a http site, makes things much easier, plus I can get motion from BlueIris.

          		{
          		module: 'MMM-iFrame',
          		position: 'bottom_left',	// This can be any of the regions.
          		config: {
          			// See 'Configuration options' for more information.
          				url: ["http://192.XXX.X.XXX:XXXX/mjpg/CAM1/video.mjpg"],
          				updateInterval: 0.5 * 60 * 1000, // rotate URLs every 30 seconds
          				width: "1200px", // Optional. Default: 100%
          				height: "600px" //Optional. Default: 100px
          			}
          		},
          
          D 1 Reply Last reply Reply Quote 0
          • BKeyportB Offline
            BKeyport Module Developer
            last edited by BKeyport

            I now have MMM-FreeboxTV working displaying my IP Camera.

            Here’s the trick:

            Edit streamsConfig.json and strip out everything but channel 2.

            Channel 2 should be:

            "2": "rtsp://[url]"
            

            Then: in config.js

            {
            	module: 'MMM-FreeboxTV',
            	position: 'top_right',
            	config: {
            		debug: false,
            		autoReplay: true,
            		fullscreen: false,
            		width: [to taste],
            		height: [to taste],
            		onStart: 2,
            		onStartDelay: 5000,
            		streams: "streamsConfig.json"
            	}
            },
            

            PS: Because of my module size, I needed to still use my unlisted block module. :(

            The "E" in "Javascript" stands for "Easy"

            D M 2 Replies Last reply Reply Quote 0
            • D Offline
              drx1984 @BKeyport
              last edited by

              @BKeyport do you mean that
              Unfortunately I don’t see a stream either

              Screenshot 2021-01-15 082339.jpg

              Screenshot 2021-01-15 082409.jpg

              BKeyportB 1 Reply Last reply Reply Quote 0
              • D Offline
                drx1984 @jasondreher
                last edited by

                @jasondreher Unfortunately, iframe does not work with Reolink cameras.

                G 1 Reply Last reply Reply Quote 0
                • BKeyportB Offline
                  BKeyport Module Developer @drx1984
                  last edited by

                  @drx1984 you didn’t follow my directions. The system expects the channels in the json file.

                  The "E" in "Javascript" stands for "Easy"

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    drx1984 @BKeyport
                    last edited by

                    @BKeyport Good morning thanks,
                    Everything works fine locally now.
                    But when I call up my MagicMirror via a browser on another computer via an IP address, there is no cam stream.
                    I think it only works locally?
                    Is there any other solution? Or at least display a picture from the IP camera?

                    1 Reply Last reply Reply Quote 0
                    • BKeyportB Offline
                      BKeyport Module Developer
                      last edited by

                      Sadly, no. Other programs had a option for a remote feed, like using OMXPlayer locally, and mmfpeg remotely, but those are abandoned.

                      The "E" in "Javascript" stands for "Easy"

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        goprojojo @drx1984
                        last edited by goprojojo

                        @drx1984 That’s too bad. Hope there is a solution for Reolink. Any confirmed camera brand that does work with MMM-FreeboxTV?

                        BKeyportB 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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