About /api/createEvent的API
Answered有關/api/createEvent的API,我想問幾個問題:
(Regarding the API of /api/createEvent, I would like to ask a few questions:)
1.請問在使用/api/createEvent的API,可以上傳自己的圖片嗎?例如在顯示桌面通知時,圖片是自己上傳的。
(1. Can I upload my own pictures when using the /api/createEvent API? For example, when displaying desktop notifications, the pictures are uploaded by myself.)
2.我在事件規則設置"已偵測到分析物件",我要如何設定/api/createEvent的API的傳送內容讓規則可以抓到我發送的事件?我用以下資料無法順利創造事件
(2. I set "Analysis object detected" in the event rule, how do I set the content of the API of /api/createEvent so that the rule can capture the event I sent? I can't create the event smoothly with the following information)
-
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.
-
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
-
Hi Andrey
我的意思是,我是否可以使用第三方軟體,通知Nx有偵測到物件?
I mean, can I use 3rd party software to notify the Nx that an object has been detected? -
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. -
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.
Please sign in to leave a comment.
Comments
7 comments