MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Hikvision DVR Image capture MMM-iFrame

    Troubleshooting
    3
    8
    229
    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.
    • J
      JimH last edited by sdetweil

      Hi all, I’ve been trying to find a way to show a regularly refreshed image capture from my DVR onto my MM, we get a lot of parcels delivered and they are just left in the porch so it would be good to have a feed that we could keep an eye on.
      I’ve got a Hickvision system and can capture an image with a http url address easily, however having tried several modules I do not seem to be able to get the image to stream to the MM.
      MMM-Globe
      MMM-RTSPStream
      MMM-iFrame is now where I’m at - as I say it all seems to work and no errors showing but I dont get an image, with the config as below I get the random image from picsum but not the snapshot image I want from my DVR. If I just drop the dvr URL into Chrome I get the still so I know it’s not the address that’s the issue. Any help gratefully received.

      {
                      module: 'MMM-iFrame',
                      position: 'middle_center',      // This can be any of the regions.
                      config: {
                              // See 'Configuration options' for more information.
                                      url: ["http://admin:Password:)@192.168.1.69:80/ISAPI/Streaming/channels/402/picture?snapShotImageType=JPEG", "http://picsum.photos/200"],  // as many URLs you want or you can just ["ENTER IN URL"] if sing>
                                      updateInterval: 0.25 * 60 * 1000, // rotate URLs every 30 seconds
                                      width: "900", // width of iframe
                                      height: "900", // height of iframe
                                      frameWidth: "900" // width of embedded iframe, height is beeing calculated by aspect ratio of iframe
      }
      
      S BKeyport 2 Replies Last reply Reply Quote 0
      • S
        sdetweil @JimH last edited by

        @JimH what’s that symbol after password?

        if u use the url in curl on the command line
        does it download the image?

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • J
          JimH last edited by

          thanks for looking at this, I have found that when I view MM via an Ipad the image does appear, so maybe there’s something that the Pi just doesn’t like about the image file returned.

          If I’ve done this right I get the following response from curl

          pi@raspberrypi: $ curl http://admin:XXX@192.168.1.69:80/ISAPI/Streaming/channels/402/picture?snapShotImageType=jpeg

          /ISAPI/Streaming/channels/402/picture 4 Invalid Operation invalidOperation
          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @JimH last edited by

            @JimH interesting…

            so, if u open the developers window in the pi monitor, ctrl-shift-i, then select the console tab and put frame into the filter field, you should see the error there

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • J
              JimH last edited by

              Hi Sam, so I took a look and there’s nothing listing when I filter for frame but…
              I did find at the bottom of the Elements tab when I selected the module that’s running my image, there’s a warning that a Deprecated Feature is Used, it’s blocking any HTTP/HTTPS://user:pass@host/ url’s
              I guess the browser on the iPad isn’t so fussy and just picks it up anyway.

              There’s probably a way to add my Pi’s IP to an open access list on the DVR, or to file the image into a cloud location somewhere and then ref that to get it onto the MM.

              Nothing is ever simple!

              Thanks for the pointers!

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @JimH last edited by

                @JimH said in Hikvision DVR Image capture MMM-iFrame:

                Nothing is ever simple!

                indeed!

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • BKeyport
                  BKeyport Module Developer @JimH last edited by

                  @JimH use proxy image. This is my configuration for my reolink cameras.

                  
                  		{
                  			module: "MMM-ProxyImage", // https://github.com/daxiang28/MMM-ProxyImage
                  			position: "top_center",
                  			config: {
                  				name: 'Driveway', // Must be unique if using multiple instances
                  				updateInterval: 1000, // Duration between image refresh
                  				host: ['<url>'],
                  				port: 80,
                  				height: 540, // Pixel height of the image
                  				width: 960, // Pixel width of the image
                  				authType: 'basic' // basic||digest auth types
                  			}
                  		},
                  
                  

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

                  1 Reply Last reply Reply Quote 0
                  • J
                    JimH last edited by

                    @BKeyport
                    Much appraciated, that works a treat! I owe you a Beer…

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy