NX API應用 (Nx Witness Server API questions)

Completed

Comments

7 comments

  • Avatar
    Norman - Nx Support

    Hi 陳昱良 ,

    Could you submit your questions in English, since English is the common language in this community.

    0
    Comment actions Permalink
  • Avatar
    Anderson Chang

    Hi 陳昱良

    請參考以下回覆:
    Please find the replies below:

    Q:目前我只在攝影機設定>專家模式中有看到邏輯ID的設定,並無查看到攝影機ID,請問是在那裡查看攝影機ID?
    Q: I can only find the Logical ID on Camera Settings > Expert mage, but not the camera ID. Where can I find the camera ID?

    攝影機設定 > 一般頁面上,點擊顯示較多資訊,即可取得攝影機ID。
    Please go to Camera Settings > Normal page, click More Info, then you can find the Camera ID.

     

    Q: 關於邏輯ID,查看相關介紹說可用於API中,請問要怎麼帶入?目前測試當邏輯ID設定為1時,直接將camera_id參數帶入1會失敗?
    Q: According to the document, the Logical ID can be used in the API. How to use the Logical ID within the API acutually? Test by setting the Logical ID as 1, then set the camera_id as 1 but fail. 

    原則上邏輯ID可用於替換api中的攝影機ID參數。
    請問您是在使用哪一項api時發生問題呢?是否能提供您操作的螢幕錄影供我方判斷問題?
    Generally, the Logical ID can replace the camera ID parameter in the API.
    May I know which API did you use with the Logical ID but met the issue? Could you provide the screen recording of the issue for us to investigate?

     

    Q: 在Create an upload job 這API中 ttl  參數,根據文件應是透過API上傳的文件,上傳後過N 微秒後會刪除此檔案,但我用此API ttl帶入6,在NX系統中無看到會刪除此影像?
    Q: About the ttl parameter of the Create an upload job API, according to the document, the uploaded files will be deleted after upload for N millisecond. I set the ttl to 6 in this API, however, I did not find the video recording be removed from the Nx system.

    根據您的描述,我推測您使用的是 /api/downloads/{fileName}?upload 這支 API,此 ttl 是定義傳輸的連線逾時時間,在上傳的過程中,若發生 Nx Server 在超過此給定的時間沒有收到封包,則會視為上傳失敗,並將 server 上尚未傳輸完畢的檔案刪除。
    According to your description, I assume the API you are talking about is /api/downloads/{fileName}?upload. The TTL of this API defines the session timeout period. During the uploading, if the Nx Server does not receive the packets longer than the setting ttl, the server will consider the uploading fails and remove the unfinished uploading files.

     

    Q: 如避免NX系統磁碟空間不足,有無設定N天前影像會自動刪除或是刪除方式?
    Q: How to prevent the Nx system disk from lacking of storage volume? Can I set to remove the video which is N days ago?

    Nx Witness 有完善的儲存空間回收機制,當儲存空間達到容量上限,Nx server 會清除部分已儲存的錄影資料,讓硬碟能有空間來寫入後續的錄影資料。
    若您仍希望設定 Nx server 刪除特定天數前的影像,請至攝影機設定 > 錄影頁面中,設定至多的保留天數。
    Nx Witness has a well-designed storage recycling mechanism. When the storage volume reaches maximum capacity and only the reserve space remains, Nx Witness will start to delete the oldest files so that newly captured video can be archived.
    if you still want to set the Nx Server to remove the video files recorded specific days ago, please go to Camera Settings > Recording page, then set the Max days in the Keep Archive For section.

     

    若您對以上的回覆仍有疑問,請再不吝提出,謝謝。
    Please don't hesitate to let us know if you have any further questions, thank you.

    此外要在此提醒您,因為論壇上有來自世界各地的使用者,以及我方技術支援人員未必都看得懂中文,要麻煩您後續在論壇上使用英文進行詢問和回覆,以便讓更多的使用者可參與討論,且您也可以獲得我方技術支援人員更即時的支援。
    Moreover, I would like to mention, that since the users of this community are around the world, and not all of our support team members can understand Mandarin, we would like to ask you to use English in this community for posting or replying to the issue. In this way, not only that more users can join the discussion, you could receive support from our support team sooner.

    0
    Comment actions Permalink
  • Avatar
    陳昱良

    Hi Norman - Nx Support

    Okay, sorry about that, I'll ask in English next time.

    0
    Comment actions Permalink
  • Avatar
    Ichiro

    Hi 陳昱良,

    There is no need to apologize.
    It is totally OK if you use the local language for the first time. We really appreciate that if you can use English to share your knowledge or experience with more people.

    0
    Comment actions Permalink
  • Avatar
    陳昱良

    Hi Anderson Chang,

    I import the logical ID to the virtual camera through the API.

    The relevant APIs used are as follows:
    1. /api/wearableCamera/lock
    2. /api/wearableCamera/consume
    3. /api/wearableCamera/extend
    4. /api/wearableCamera/release

    The part I tested is described below:
    1. camera_id ="{5d955e90-7fd1-a9d1-e6c4-cf7a6a916134}"  ## Physical camera can be normal
    2. camera_id ="{1}"  ## Logical ID unavailable
    3. camera_id ="1"  ## Logical ID unavailable

    0
    Comment actions Permalink
  • Avatar
    Anderson Chang

    Hi 陳昱良,

    I have tested the API you used, and could not make these API work with the Logical ID either. I have forwarded this issue to our dev team.
    Please use the Camera ID with these API for now.

    I am sorry for the inconvinience that we brought to you.

     

    JIRA-VMS-35011

    0
    Comment actions Permalink
  • Avatar
    陳昱良

    Hi Anderson Chang,

    You don't have to be sorry,
    On the contrary, I am very grateful for your assistance and help.
    I'm looking forward to NX getting better and better.

    0
    Comment actions Permalink

Please sign in to leave a comment.