• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Hikvision DVR Image capture MMM-iFrame

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 3 Posters 782 Views 3 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.
  • J Offline
    JimH
    last edited by sdetweil Oct 26, 2022, 11:28 PM Oct 26, 2022, 3:58 PM

    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 B 2 Replies Last reply Oct 26, 2022, 11:29 PM Reply Quote 0
    • S Away
      sdetweil @JimH
      last edited by Oct 26, 2022, 11:29 PM

      @JimH what’s that symbol after password?

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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • J Offline
        JimH
        last edited by Oct 27, 2022, 10:55 AM

        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 Oct 27, 2022, 11:35 AM Reply Quote 0
        • S Away
          sdetweil @JimH
          last edited by Oct 27, 2022, 11:35 AM

          @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

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • J Offline
            JimH
            last edited by Oct 27, 2022, 7:10 PM

            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 Oct 27, 2022, 9:33 PM Reply Quote 0
            • S Away
              sdetweil @JimH
              last edited by Oct 27, 2022, 9:33 PM

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

              Nothing is ever simple!

              indeed!

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • B Offline
                BKeyport Module Developer @JimH
                last edited by Oct 28, 2022, 7:39 PM

                @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 Offline
                  JimH
                  last edited by Oct 30, 2022, 10:00 AM

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

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    3/8
                    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