About /api/createEvent的API

Answered

Comments

7 comments

  • Avatar
    Wendy Chuang

    Hi Tina Peng,

    1. You cannot use your own photo in the generic event. But you could put the specific camera ID in the metadata field. Then you could get a snapshot of the camera once the event is triggered.
    See this article for more details: https://support.networkoptix.com/hc/en-us/articles/360010436293-How-to-get-a-snapshot-from-a-camera-via-email-when-an-event-is-detected-

    2. The problem is caused by the response of event type couldn't be recognized. If you just want to create a simple generic event, perhaps you could try it with the following parameter first:
    - timestamp
    - source
    - caption
    - description
    - metadata (if required)
    - statue(if required)

    Thank you.

    0
    Comment actions Permalink
  • Avatar
    Tina Peng

    不好意思,我想再請教一個問題,那就是請問我是否可以使用API,寄出有物件被偵測到的訊息?
    Sorry, I want to ask another question, that is, can I use the API to send a message that an object is detected?

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hi,

    Please, specify the OS version and VMS build number you're using.


    I'm sorry. Could you please explain in greater detail?

    Who should send a message to whom when an object has been detected?

    FYI

    /api/createEvent triggers a predefined event rule with "When" section defined as "Generic Event". You can read more about Generic Event in the GUI built-in help manual

    0
    Comment actions Permalink
  • Avatar
    Tina Peng

    Hi Andrey

    我的意思是,我是否可以使用第三方軟體,通知Nx有偵測到物件?
    I mean, can I use 3rd party software to notify the Nx that an object has been detected?

     

    0
    Comment actions Permalink
  • Avatar
    Wendy Chuang

    Hi Tina Peng,

    Actually, this question should be passed to the 3rd party software that you attempt to use. If the device/3rd party software supports sending the HTTP event once an object is detected, then it is possible.
    "Sending event when an object is detected" is an active action on the 3rd party software/device, not on the Nx side. Nx just waits for the event to come, checks the carried info, and does the corresponding action.


    Thank you.

    0
    Comment actions Permalink
  • Avatar
    Tina Peng

    那請問我要如何讓Nx的插件接收到第三方軟體的訊息?
    So how can I let the Nx plug-in receive the news of the third-party software?

     

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hi Tina,

    I'd recommend you reading this guide in order to get the big picture of what integration might look like.

    https://meta.nxvms.com/docs/developers/knowledgebase/195-1-integration-capabilities--what-to-expect

    If you'll have further questions, please ask them in the forum.

    0
    Comment actions Permalink

Please sign in to leave a comment.