Populate Alarm preview window with alarm details and image while pushing events to smart client using TriggerAnalyticsEventviaXML

Hi,

We’re trying to push events into Milestone with XML request body. we are in need to know exactly what modifications to be done in XML request body such that we receive pushed data in alarms preview window in the reference image shown below ?

With XML Schema Definition file available, I was not able to figure this out. I would really appreciate your help on this.

For any related info needed, please let me know.

Thank you.

In the Smart Client Alarm Preview some things are automatically included for display; snapshot images and related cameras.

I believe you will have to develop a alarm preview plugin, doing so you can ensure you show the information from the event the way you would like it presented.

Explore the Smart Client Alarm Preview plugin to see it in work.

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/alarmpreview/readme.html&tree=tree_1.html

https://github.com/milestonesys

Hi Andersen,

I see…the references was useful.

Since I’m pushing alarms to milestone via xml, let assume this is my payload

<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?> \\n\\n

<AnalyticsEvent \n\n

xmlns=\“urn:milestone-systems\” \n\n

xmlns:i=\“http://www.w3.org/2001/XMLSchema-instance\”> \n\n

\n\n

00000000-0000-0000-0000-000000000000 \n\n

2023-01-27T11:30:26.103Z \n\n

Analytics \n\n

3 \n\n

TRIPWIRE \n\n

TRIPWIRE \n\n

\\n\\n

\n\n

c58de036-2f33-413d-9672-81feb30734aa \n\n

\n\n

\\n\\n

\n\n

\n\n

\n\n

\n\n

00000000-0000-0000-0000-000000000000 \n\n

Object \n\n

Object \n\n

\n\n

0.9 \n\n

NA \n\n

\n\n

0.0037037036381661892 \n\n

0.71041667461395264 \n\n

0.77037035441026092 \n\n

0.96875 \n\n

\n\n

\n\n

\n\n

\n\n

\n\n

0 \n\n

150 \n\n

200 \n\n

false \n\n

2552 \n\n

base64imagestring \n\n

\n\n

\n\n

Could you please point out what modification to be done to send text next to image like this ? I was unable to figure that out.

Thank you for your support.

Unfortunately you cannot get what you want by just sending another input with additional data on the event, it is the plugin that needs to have the new capability you want.

What you should do is to use the Smart Client Alarm Preview plugin sample as inspiration but develop your own plugin that does what you want it to do.

Hi,

Understood…I believe your suggesting to go with Plug-in integration.

But the FR alarms screenshot shared earlier was via SDK integration. But currently I’m using Protocol Integration.

So it would be safe to presume there would be a way to achieve the same with Protocol integration ?

could you please let me know of this ?

Thank you.

You will need extended functionality in the Smart Client, I do not see any alternative solution other than developing a plugin.

See if you can develop this yourself, based on the sample you might find it very simple, or find somebody with the skill set to help you.

Sure Andersen, i’ll see what can be done.

Thank you for the responses.