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
246
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

  • Hik_IPS_Settings.zip
    63.8 MB · Views: 26
Last edited:
Thanks, could you share a few instructions on how to use it please?
 
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

  • Hik_IPS.zip
    63.8 MB · Views: 19
@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
 
Back
Top