01304 827609 info@use-ip.co.uk Find us

Hikvision Day/Night script

rjsrjs

New Member
Messages
4
Points
3
Needed --digest to work on the G1 camera. IP:6500x is for going via the NVR via the virtual host mode to the cameras - use IP:80? for all cameras not connected to an NVR.

Use timeanddate.com for local sunrise and sunset times and change further to suit local conditions.

Hope this helps others.

curl --digest -X PUT -T ~/Desktop/ss.xml "http://user:password@IP:65001/ISAPI/Image/channels/1/ISPMode"

ss.xml
<?xml version="1.0" encoding="UTF-8"?>

<ISPMode version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<mode>schedule</mode>
<Schedule>
<scheduleType>day</scheduleType>
<TimeRange>
<beginTime>05:58:00</beginTime>
<endTime>20:44:00</endTime>
</TimeRange>
</Schedule>
</ISPMode>
 
Back
Top