Hi all,
I have an Hikvision IP camera DS-2CD2120F-IW model with firmware v5.4.5 and I need to get alarm events produced by Line Crossing Detection to work with them on my web application.
Which ways do i have to get this information?
I am trying to understand XML from ISAPI method GET /ISAPI/Event/notification/alertStream
but I do not have a clear idea.
What is activePostCount?
How to count Line Crossing Alarms with this method?
Which is what is giving me back this method?
HTTP/1.1 200 OK
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=boundary
--boundary
Content-Type: application/xml; charset="UTF-8"
Content-Length: 486
<EventNotificationAlert version="2.0" xmlns="Oops:The page you are visiting may have been deleted,renamed or inaccessible.">
<ipAddress>xxx.xxx.xxx.xxx</ipAddress>
<portNo>80</portNo>
<protocol>HTTP</protocol>
<macAddress>54:c4:80:80:80:80</macAddress>
<channelID>1</channelID>
<dateTime>2017-03-17T11:43:04+01:00</dateTime>
<activePostCount>1</activePostCount>
<eventType>linedetection</eventType>
<eventState>active</eventState>
<eventDescription>linedetection alarm</eventDescription>
</EventNotificationAlert>
--boundary
Content-Type: application/xml; charset="UTF-8"
Content-Length: 480
<EventNotificationAlert version="2.0" xmlns="Oops:The page you are visiting may have been deleted,renamed or inaccessible.">
<ipAddress>xxx.xxx.xxx.xxx</ipAddress>
<portNo>82</portNo>
<protocol>HTTP</protocol>
<macAddress>54:c4:80:80:80:80</macAddress>
<channelID>1</channelID>
<dateTime>2017-03-17T11:47:47+01:00</dateTime>
<activePostCount>0</activePostCount>
<eventType>videoloss</eventType>
<eventState>inactive</eventState>
<eventDescription>videoloss alarm</eventDescription>
</EventNotificationAlert>
Any help will be great. Thank you in advanced.
I have an Hikvision IP camera DS-2CD2120F-IW model with firmware v5.4.5 and I need to get alarm events produced by Line Crossing Detection to work with them on my web application.
Which ways do i have to get this information?
I am trying to understand XML from ISAPI method GET /ISAPI/Event/notification/alertStream
but I do not have a clear idea.
What is activePostCount?
How to count Line Crossing Alarms with this method?
Which is what is giving me back this method?
HTTP/1.1 200 OK
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=boundary
--boundary
Content-Type: application/xml; charset="UTF-8"
Content-Length: 486
<EventNotificationAlert version="2.0" xmlns="Oops:The page you are visiting may have been deleted,renamed or inaccessible.">
<ipAddress>xxx.xxx.xxx.xxx</ipAddress>
<portNo>80</portNo>
<protocol>HTTP</protocol>
<macAddress>54:c4:80:80:80:80</macAddress>
<channelID>1</channelID>
<dateTime>2017-03-17T11:43:04+01:00</dateTime>
<activePostCount>1</activePostCount>
<eventType>linedetection</eventType>
<eventState>active</eventState>
<eventDescription>linedetection alarm</eventDescription>
</EventNotificationAlert>
--boundary
Content-Type: application/xml; charset="UTF-8"
Content-Length: 480
<EventNotificationAlert version="2.0" xmlns="Oops:The page you are visiting may have been deleted,renamed or inaccessible.">
<ipAddress>xxx.xxx.xxx.xxx</ipAddress>
<portNo>82</portNo>
<protocol>HTTP</protocol>
<macAddress>54:c4:80:80:80:80</macAddress>
<channelID>1</channelID>
<dateTime>2017-03-17T11:47:47+01:00</dateTime>
<activePostCount>0</activePostCount>
<eventType>videoloss</eventType>
<eventState>inactive</eventState>
<eventDescription>videoloss alarm</eventDescription>
</EventNotificationAlert>
Any help will be great. Thank you in advanced.