turn off IR using API

ijuecat

n3wb
Joined
Jan 13, 2020
Messages
5
Reaction score
1
Location
Austria
Hi,

I'm using a Hikvison DS-2CD2T42WD and would like to turn off the IR led using a API function or turn off the whole cam. Are there any possibilities?

Thanks and best regards
 

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
It can be done by via ISAPI after enabling the common gateway interface (CGI) protocol on the camera. Using curl or a HTTP request the ircutFilter can be manually set.
Are you developing an app or would controlling the setting via your browser be sufficient?
 

ijuecat

n3wb
Joined
Jan 13, 2020
Messages
5
Reaction score
1
Location
Austria
How do I enable the CGI? I already tried a ISAPI http command but this didn't work.
Setting via browser is OK for me.

Thanks
 

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
Via the camera's webGUI, go to Configuration>Network>Advanced Settings>Integration Protocol.
Enable CGI and set authentication to digest/basic. For ISAPI, enable ONVIF and create a user with the same credentials as the admin login.
 

ijuecat

n3wb
Joined
Jan 13, 2020
Messages
5
Reaction score
1
Location
Austria
Hello StewartM,

Could you help me with the ircutfilter command, please. A http request would be easiest for me but I can‘t find the command in the ISAPI reference guide.

Thx
Ijuecat
 

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town

ijuecat

n3wb
Joined
Jan 13, 2020
Messages
5
Reaction score
1
Location
Austria
I tried with Postman but I only get back 401 unauthorized, password and IP are correct,
admin user is the same for system and ONVIF
 

Attachments

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
Check authentication is set to digest/basic here:
1583618395798.png
And here:
1583618457180.png
 

ijuecat

n3wb
Joined
Jan 13, 2020
Messages
5
Reaction score
1
Location
Austria
OK, many thanks, now it works!!!

I only set authentication in the integration protocol

thx
 
Top