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

Windows utility to set Hikvision Image Parameters Switch Scenes based on local sunrise sunset times

johnfitzy

Gives a lot of help
Trusted Member
Messages
296
Points
43
Hi... I created this utility to set the Image Parameters Switch on Hikvision cameras using local sunrise/sunset times... I have attached a copy of the Windows utility if anyone wants to try it out...

Screenshot 2024-03-22 083522.png


Screenshot 2024-03-22 083725.png


PLEASE USE LATEST VERSION AT END OF THREAD!
 

Attachments

Last edited:
a few instructions on how to use

The first time you run it, enter your latitude and longitude coordinates... you can get these by right clicking on you location in google maps... after entering these, you should see correct sunrise/sunset times for the current date/location...

enter your camera's username and password... enter an IP address and port number for a camera you want to add... for cameras on the LAN, the port number will most likely be 80... for cameras connected to NVR PoE ports, use the NVR IP address and 65001, 65002, etc. as the port number... "virtual host" must be enabled on the NVR for this to work...

hit the add button... the utility will then send a http get "/ISAPI/Streaming/channels/101/capabilities" request to the camera to see that it exists and get the camera name... if it is found, it then sends a http get "/ISAPI/Image/Channels/1/displayParamSwitch" request to check which version of the image parameters switch the camera uses...

the camera is then added to the camera list... you can use the edit button to change the sunrise/sunset scenes or minute offsets from sunrise/sunset you would like to use... while in edit mode, you may also delete any cameras that have been added... add as many cameras as you like... then hit the "IPS On" button and http put requests will be sent to each camera to set the image parameter switch schedules.

The utility uses the sunrise/sunset times for 15th day of each month to set the schedule. Older cameras with a version 1.0 image parameters switch look like this:

Screenshot 2024-03-22 094829.png

These V1.0 cameras only have one setting (not 12 months) so the 15th of the current month is used to set those... I have two older cameras like this, so I intend to run the utility once a month to keep these updated.

On first use, the utility will create a configuration file (.ini) that saves the username, latitude, longitude, and camera information for subsequent runs. The configuration file is updated anytime changes are made... the camera password is not saved and will need to be entered each time the utility is run... one limitation is that all cameras must be using the same username and password.

I'm looking forward to any feedback and will help/correct any issues found!
 
V1.0 allowed characters in latitude and longitude that would cause error message... new version V1.1 fixes this...

Screenshot 2024-03-27 100345.png
 

Attachments

@johnfitzy I downloaded v1.1 and copied it into the same folder as v1.0 (renamed old). Ran ok and loaded data from the ini file.

I see you added the app version number as well.

Does the app automatically adjust for UTC/BST changes? Looks like it does.

David
 
Hikvision changed the Image Parameters Switch GUI and ISAPI functionality a bit in the latest firmware... you can no longer set time periods that "meet/overlap" unless they are on the hour or half hour... a bit hard to explain but if you have a camera and the image parameters switch now looks like this:

Screenshot 2024-12-12 033137.png


then you can try adjusting the times and you will see what happens. In any case, I've adjusted the utility so that rather than, for instance, setting a period to:

00:00:00 - 06:32:00 / 06:32:00 - 17:08:00 / 17:08:00 - 24:00:00

it instead sets it to:

00:00:00 - 06:31:00 / 06:32:00 - 17:07:00 / 17:08:00 - 24:00:00

and all is well. The new firmware also changes the "Normal" scene name to "Basic", but behind the scenes (ha-ha, pun unintended) the ISAPI traffic from/to the camera still use "Normal", so no change there... just know to choose "Normal" for "Basic".

Here is version 1.2: Hik_IPS.zip
 
Last edited:
Back
Top