Is it possible to use the Hikvision ISAPI to toggle on/off the Image Parameters Switch?

johnfitz

Getting comfortable
Joined
Feb 4, 2021
Messages
319
Reaction score
452
Location
NY
If it is, does any have details about the URL and body of the http request needed? If that even makes sense, I'm just getting started with this stuff... :)
 

trempa92

Pulling my weight
Joined
Mar 26, 2020
Messages
736
Reaction score
230
Location
Croatia,Zagreb
i believe if you use search you will find almost exact same question posted month ago. And ofcourse the answers
 

johnfitz

Getting comfortable
Joined
Feb 4, 2021
Messages
319
Reaction score
452
Location
NY
Hi @trempa92 ... I did search and found some similar questions/discussion, but not anything for this specific question.

Almost exact does not give me the answer to this specific question :)
 

trempa92

Pulling my weight
Joined
Mar 26, 2020
Messages
736
Reaction score
230
Location
Croatia,Zagreb
There no easy toggle on and off

To turn it off:


Code:
curl 'http://192.168.22.142/ISAPI/Image/channels/1/displayParamSwitch' \
  -X 'PUT' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Cache-Control: max-age=0' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \

  --data-raw '<?xml version="1.0" encoding="UTF-8"?><DisplayParamSwitch><mode>disable</mode><Month><PeriodList size="12"><Period><id>1</id><TimeRangeList/></Period><Period><id>2</id><TimeRangeList/></Period><Period><id>3</id><TimeRangeList/></Period><Period><id>4</id><TimeRangeList/></Period><Period><id>5</id><TimeRangeList/></Period><Period><id>6</id><TimeRangeList/></Period><Period><id>7</id><TimeRangeList/></Period><Period><id>8</id><TimeRangeList/></Period><Period><id>9</id><TimeRangeList/></Period><Period><id>10</id><TimeRangeList/></Period><Period><id>11</id><TimeRangeList/></Period><Period><id>12</id><TimeRangeList/></Period></PeriodList></Month></DisplayParamSwitch>' \
  --compressed \
  --insecure
And to turn it on depend on the template for example Low illumination on all months

1708211298643.png


Code:
curl 'http://192.168.22.142/ISAPI/Image/channels/1/displayParamSwitch' \
  -X 'PUT' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Cache-Control: max-age=0' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
  --data-raw '<?xml version="1.0" encoding="UTF-8"?><DisplayParamSwitch><mode>month</mode><Month><PeriodList size="12"><Period><id>1</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>2</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>3</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>4</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>5</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>6</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>7</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>8</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>9</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>10</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>11</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period><Period><id>12</id><TimeRangeList><TimeRange><beginTime>00:00:00</beginTime><endTime>24:00:00</endTime><linkScene>lowIllumination</linkScene></TimeRange></TimeRangeList></Period></PeriodList></Month></DisplayParamSwitch>' \
  --compressed \
  --insecure

Hope this answers your question
 

trempa92

Pulling my weight
Joined
Mar 26, 2020
Messages
736
Reaction score
230
Location
Croatia,Zagreb
Maybe this thread will help you aswell:

 

johnfitz

Getting comfortable
Joined
Feb 4, 2021
Messages
319
Reaction score
452
Location
NY
Hi @trempa92 ... You are 100% correct! ... or at least that's exactly the conclusion I came to as well.... Thanks so much for confirming this!!!
 
Top