I have 4 Hikvision camera’s that support going to a URL to get a live picture and trying to get it to work with ST. I am using the Generic Camera Device Handler and created a device and using these settings below:
Preferences (edit)
Name Type Value
CameraAuth bool true
CameraIP string 192.168.175.176
CameraPassword string *********
CameraPath string /Streaming/channels/1/picture
CameraPort string 80
CameraPostGet string GET
CameraUser string admin
If I go to this URL I have to authenticate then I get the picture so going through the browser works but I cannot get the device to work as it just gets stuck on “Taking” when I press that button.
095135d3-1550-46fa-90f9-47ca5ffb5ef0 12:24:34 PM: debug GET /Streaming/channels/1/picture HTTP/1.1
Accept: /
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 192.168.175.176:80
Authorization: Basic *************************==
095135d3-1550-46fa-90f9-47ca5ffb5ef0 12:24:34 PM: debug The method is GET
095135d3-1550-46fa-90f9-47ca5ffb5ef0 12:24:34 PM: debug The Header is [HOST:192.168.175.176:80, Authorization:Basic YWRtaW46SXRpc21lMTk3NQ==]
095135d3-1550-46fa-90f9-47ca5ffb5ef0 12:24:34 PM: debug Uses which method: GET
095135d3-1550-46fa-90f9-47ca5ffb5ef0 12:24:34 PM: debug Requires Auth: true
095135d3-1550-46fa-90f9-47ca5ffb5ef0 12:24:34 PM: debug path is: /Streaming/channels/1/picture
095135d3-1550-46fa-90f9-47ca5ffb5ef0 12:24:34 PM: debug The device id configured is: C0A8AFB0:0050
095135d3-1550-46fa-90f9-47ca5ffb5ef0 12:24:34 PM: debug 0050
095135d3-1550-46fa-90f9-47ca5ffb5ef0 12:24:34 PM: debug IP address entered is 192.168.175.176 and the converted hex code is c0a8afb0
1 Like
mdawson
(Different Computers. So happy with Indigo.)
3
I’m not using that camera, but I’m having trouble getting that device driver to work with IP Cam from the iOS App Store.
it appears to be configurable to work, but it just stalls forever at TAKING.
List Events says “take command was sent to PondCam” but nothing is returned.
This is just from memory so it’s just a guess but there is something about the picture size and ST server. Possible it’s too big and causing it to stuck on “taking”. Can you go into your camera setting and set it to lower resolution for picture?
No, haven’t tried the nvr, but unless it outputs an image much smaller in bytes then the camera, it simply won’t work.
mdawson
(Different Computers. So happy with Indigo.)
9
any tips for making the generic camera device type work with what appears to be a properly formed, low resolution MJPEG output? logging shows the ST device sending a request, but nothing happens after that–no error, no result.
mdawson
(Different Computers. So happy with Indigo.)
15
Checked the DNI, it’s in hex.
double checked the addresses, they’re good.
made sure the image is small, they are.
Still getting a long “TAKING” delay, with nothing ultimately returned. Looks like there’s just some plain incompatibility, though I can’t imagine what. The raw stream is a simple image, not imbedded on a page.
And sometimes SmartThings just doesn’t work. The s3image function is unsupported and fundamentally broken. So the fact that it works occasionally is more of a bug than a feature.
Patrick, Since you mentioned you have a Hikvision Camera Can you look at the Drew’s code. I am using his code and take image works fine however I can’t make use of camera’s motion detection.