My client has on his house HIKVision cameras and I am so impressed about its quality and also modern webserver and API. But it is fresh software so I must update my scripts to support such cameras. I found that I cannot download an image in same way as before in BCS cameras. I have right path:
http://username:password@ip_address:port/ISAPI/Streaming/channels/102/picture
and it's work perfectly on webbrowser but unfortunately not in script.
This is my script:
And it logs that length of image1 is nil.
I've found this specification:
http://down.dipol.com.pl/Cctv/-Hikvision...ervice.pdf
I've had similar differences when I've tried get image from old BCS camera and new HIK by Postman app and I've figured out that on HIK cameras autentification must be set to Digest Auth. How can I do it in Lua?
http://username:password@ip_address:port/ISAPI/Streaming/channels/102/picture
and it's work perfectly on webbrowser but unfortunately not in script.
This is my script:
Code:
require('socket.http')
local image1 = socket.http.request('http://username:password@ip_address:port/ISAPI/Streaming/channels/102/picture')
log(#image1)
And it logs that length of image1 is nil.
I've found this specification:
http://down.dipol.com.pl/Cctv/-Hikvision...ervice.pdf
I've had similar differences when I've tried get image from old BCS camera and new HIK by Postman app and I've figured out that on HIK cameras autentification must be set to Digest Auth. How can I do it in Lua?
Done is better than perfect