UNSOLVED Hikvision DVR Image capture MMM-iFrame
-
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 }
-
@JimH what’s that symbol after password?
if u use the url in curl on the command line
does it download the image? -
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 -
@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
-
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!
-
-
@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 } },
-
@BKeyport
Much appraciated, that works a treat! I owe you a Beer…