I'm trying to switch day/night profile for one camera using a NodeJS module. I've found an npm module which looks promising: node-hikvision-api. However, some of the commands it sends are returning 404 responses from the camera.
Here's an example response I get when trying to switch to night mode:
<!DOCTYPE html>
<html><head><title>Document Error: Not Found</title></head>
<body><h2>Access Error: 404 -- Not Found</h2>
<p>Can't locate document: /cgi-bin/configManager.cgi</p>
</body>
</html>
Here's the URL it's hitting to get the above response:
http://{MY_CAMERA_IP}:80/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1
Interestingly when I Google that URL path I get many results about Dahua cameras, but not much regarding Hikvision cameras. Do they use similar APIs?
The reason I'd like to use this is because this particular camera is near a porch light and as a result it never switches to night mode on its own. This causes it to only have night visibility where the porch light shines. I'd like setup a schedule based on sunrise/sunset time to send commands to force it to switch to day/night mode as needed.
Hikvision seems to be very unforthcoming with API details. Maybe this URL no longer exists on this version of the firmware? The camera firmware version is V5.4.0 build 160530 and the model is DS-2CD2132F-IS.
Here's an example response I get when trying to switch to night mode:
<!DOCTYPE html>
<html><head><title>Document Error: Not Found</title></head>
<body><h2>Access Error: 404 -- Not Found</h2>
<p>Can't locate document: /cgi-bin/configManager.cgi</p>
</body>
</html>
Here's the URL it's hitting to get the above response:
http://{MY_CAMERA_IP}:80/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1
Interestingly when I Google that URL path I get many results about Dahua cameras, but not much regarding Hikvision cameras. Do they use similar APIs?
The reason I'd like to use this is because this particular camera is near a porch light and as a result it never switches to night mode on its own. This causes it to only have night visibility where the porch light shines. I'd like setup a schedule based on sunrise/sunset time to send commands to force it to switch to day/night mode as needed.
Hikvision seems to be very unforthcoming with API details. Maybe this URL no longer exists on this version of the firmware? The camera firmware version is V5.4.0 build 160530 and the model is DS-2CD2132F-IS.