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 1.1k 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.
    • S Do not disturb
      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

      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

        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 Do not disturb
          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

          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

            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 Do not disturb
              sdetweil @JimH
              last edited by

              @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
              • BKeyportB Offline
                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 Offline
                  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 Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy