How to create an event handler for an HTTP POST analytic sent by an IP Address inside a Plug-In?

Good day.

How are you ?

I am interested in the possibility of creating a Plug-In that configures the analytic parameters that I want to receive from an IP Addresss.

(I do not know if it s better to refer to is as Plug-In or PlugIn, so I might use both expressions)

I want to send the data from that IP Address via HTTP POST so a Milestone Event triggers when receiving it.

Then, if that event data is among the boundaries configured in the Plug-In; I want the XProtect Smart Client to receive the data and present it to the user

The data is a custom image detection I require.

As a close enough example:

Let’s say that it detects Vehicle License Plates.

My system analyses the video and detects those License Plates.

When it detects one, it generates a JSON data and sends it via HTTP POST.

I want to receive that data in the XProtect Event Server, analyse the data using the configuration of the Plug-In.

Check if the data suits the parameters that are configured.

And finally, show the data to the user in XProtect Smart Client.

1.- What steps do I have to take ?

2.- Do I have to start by creating the PlugIn for the configuration?

3.- How do I create an Event Handler at the Event Server to handle my HTTP POST request to Milestone?

4.- How do I send the data fom the Event Server to XProtect Smart Client if it suits the configuration I have defined in the PlugIn (2.-) ?

They are many questions, I know.

I have checked the YouTube videos about the installation of simple PlugIns,

but there is no information about Event Handlers of how to develop them.

MIlestone XProtect seems like the suitable VMS for what our company requires, but we need to know if this application is possible to develop and a few guide steps would be helpful.

Thank you very much for reading this long post, I tried to sum up everything in one post, although maybe I should have divided it into several of them;

but since I do not know the required steps to achieve this goal, I had to ask everything.

Again, thanks and have anice day.

What you describe is so like Analytics Event, allow me to present that concept to you.

Analytics Events are events that can be triggered by external systems like Video Analytics but could be anything. They can carry extra data, so that analytics results are easy to include. They are integrated so that they could be used directly in rule or alarms.

Some recommended reads:

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_events.html&tree=tree_4.html

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_analytics.html&tree=tree_4.html

https://developer.milestonesys.com/s/article/DATA-FROM-ANALYTICS-HOW-TO-BEST-IMPLEMENT-A-SOLUTION

https://doc.developer.milestonesys.com/html/index.html?base=samples/protocolsamples/triggeranalyticseventxml/readme.html&tree=tree_3.html

As mentioned, some parts are integrated already when using Analytics Events. But you can add extra plugins for deeper integration and better presentation in the Smart Client. Here are some samples that are good examples on how a plugin can extend the event usability:

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

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

Analytics Events are supported as XML instead JSON but apart from that I hope and think this is what you need.

Samples are found at https://github.com/milestonesys

Thank you very much for your reply.

I did not answer earlier since we have had several meetings this week, so I want to apologise for not doing so earlier.

I am reading through the documents on the links you provided, and I will try to make those examples work to try to understand more deeply how the Event Server works.

I find it quite complex and I will surely require more help to try to complete the task I have at hand.

Again, thank you for your reply and I wish you to have a good day.