/api/executeEventAction
AnsweredHi, we are trying to execute the "CameraRecordingAction" with the following request:
In return we get the following error messages:
error: '2', error string: 'Invalid json object.'.
Are we missing some parameters or is there a mistake in the above request?
Thanks in advance.
-
Hello Marek,
The method executeEventAction was published and became available by mistake. It should not be used. This is fixed in v4.1.
Please, could you give explain your objective? What is the expected result?
I would recommend you a solution.
0 -
Hi Andrey,
Thanks for your response.
We are developing an integration to the Nx Witness VMS. We want to be able to trigger/execute events/actions/rules from the integration on the VMS. We are interested in triggering a rule, enabling camera overlay and start recording on camera. What are the best HTTP api calls to achieve that?
Thanks in advance
0 -
Marek, in this case, you need to send Generic Event to the system and configure rules for that GenericĀ Event to execute required actions.
0 -
Which HTTP api is the most suitable?
0 -
Hi Marek,
There general schema is
1. Create an Event Rule for "Generic Event" to perform "Do HTTP Request" action.
- You can configure the rule via Nx Desktop client. Please, read built-in help.
- You can create the rule via calling
saveEventRule
API2. Trigger "Generic Event" via api/createEvent
Here is a post worth reading, which describes the scenario in greater detail.
https://support.networkoptix.com/hc/en-us/community/posts/360042988034/comments/360011183593
0
Please sign in to leave a comment.
Comments
5 comments