Monday, October 24, 2016

Hikvision cURL Enable or Disable IR LED

Here is how to turn on or off the IR LED on my Hikvision Camera using a cURL command, you can use it on your camera's as well.


cURL Command:
curl -T irlight_on.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Hardware

curl -T irlight_off.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Hardware


Contents of irlight_on.xml:

<?xml version="1.0" encoding="UTF-8"?>
<HardwareService xmlns="http://www.hikvision.com/ver20/XMLSchema" version="2.0">
<IrLightSwitch>
<mode>open</mode>
</IrLightSwitch>
</HardwareService>


Contents of irlight_off.xml:

<?xml version="1.0" encoding="UTF-8"?>
<HardwareService xmlns="http://www.hikvision.com/ver20/XMLSchema" version="2.0">
<IrLightSwitch>
<mode>close</mode>
</IrLightSwitch>
</HardwareService>

No comments:

Post a Comment

Thanks for your input.

PiKVM to NVR

  Trying to connect to your IP Camera Network Video Recorder (NVR) via your PiKVM and it’s not working? No video from the NVR on...