Hi,
I am trying to write an integration that gets the access logs with the video clip for each of them but it looks like the xml that I am getting back from the Mobile Server only contains part of the actual result.
I am missing the user and door information as well of the video clip.
Is there a configuration that needs the be made or a specific command attribute that needs to be added in.
This is the result that I get back:
<?xml version="1.0" encoding="UTF-8"?>
34c81ffb-e3fe-4609-b768-d62a4c2b7d7e
Response
GetAccessControlEvents
<Param Name="AccessControlSystemsCount" Value="1" />
<Item Id="fae84298-bbf3-4af2-b651-cedacf39f28b" Type="AccessControlEvent">
<Properties AccessControlRuleId="00000000-0000-0000-0000-000000000000" AccessControlSystemName="32 Dell Mesh" Message="Locked" Source="32 Dell - Front Door" Timestamp="1562532654454" />
<Items />
</Item>
<Item Id="db87e474-305c-4551-859c-99322a589979" Type="AccessControlEvent">
<Properties AccessControlRuleId="00000000-0000-0000-0000-000000000000" AccessControlSystemName="32 Dell Mesh" Message="Access Granted (Credential)" Source="32 Dell - Front Door Entry" Timestamp="1562532647423" />
<Items />
</Item>
OK
Hi Jose,
GetAccessControlEvents can return list of events or event details based on the input parameters.
If you want to get list of event you should specfy
-
<Param Name="AccessControlPageSize" Value="30"/>
-
<Param Name="AccessControlPage" Value="0"/>
-
<Param Name="AccessControlIncludeEventsCount" Value="Yes"/>
-
Then the response should look like the one that you posted.
If you need more details for specific event you should call GetAccessControlEvents command with input parameter AccessControlEventId.
Then the response will have one Item of type AccessControlEvent. with SubItems related cameras and AccessControlCommands
<Items>
<Item
Id="bcc670da-33ee-4ca2-a14d-a9b07cc281ee"
Type="AccessControlEvent">
<Properties
AccessControlRuleId="00000000-0000-0000-0000-000000000000"
AccessControlSystemName="AC Demo"
Message="Access denied"
Source="Door 0 (in)"
Timestamp="1560520911341"
AccessControlSystemId="605793b9-ef08-496d-ad50-ad4806c89021"
SourceId="006b98a8-4f59-834d-9f36-f2306a2c101e"
AccessControlReason="Not allowed at this time"/>
<Items>
<Item
Id="00000000-0000-0000-0000-000000000000"
Name="RelatedCameras"
Type="Folder">
<Properties/>
<Items>
<Item
Id="f25ce452-237e-4724-b194-47aa7f547640"
Name="Mobotix M15 series (10.5.16.21) - Camera 1"
Type="Camera">
<Properties/>
<Items/>
</Item>
</Items>
</Item>
<Item
Id="00000000-0000-0000-0000-000000000000"
Name="AccessControlCommands"
Type="Folder">
<Properties/>
<Items>
<Item
Id="00000000-0000-0000-0000-000000000000">
<Properties
AccessControlCommandType="RuleCommand"
AccessControlCommandLabel="Lock"
AccessControlOperationalInstanceId="006b98a8-4f59-834d-9f36-f2306a2c101e"
AccessControlCommandTypeId="2025c8bf-9847-0ba6-f86d-be098eca3a14"
AccessControlCommandOrder="0"/>
<Items/>
</Item>
<Item
Id="00000000-0000-0000-0000-000000000000">
<Properties
AccessControlCommandType="RuleCommand"
AccessControlCommandLabel="Unlock"
AccessControlOperationalInstanceId="006b98a8-4f59-834d-9f36-f2306a2c101e"
AccessControlCommandTypeId="45c58d02-3451-2c01-4f36-e08f0d2dcd4f"
AccessControlCommandOrder="0"/>
<Items/>
</Item>
</Items>
</Item>
</Items>
</Item>
</Items>
Thanks.
Yes, getting one event at a time works, seems like an overhead but if there is no other way that’s fine.
Is there a way to get the video clip that was saved for a specific access door event? Or do I have to create an Investigation?
Thanks, again…
Hi, depends on what you are aiming. The Access Control Event is a pointer to recording in the DB. If you want to get stream you can use RequestStream command for related camera with the event timestamp. If you want to have a video clip file then you need to create investigation and export it.