Manually adding third party cameras
AnsweredHi,
We are trying to add camera manually through the NX Server API. Our process is the following:
1. first we do a /api/manualCamera/search call to search for the available cameras.
2. we copy the process_id from the result of /api/manualCamera/search into /api/manualCamera/status?uuid=process_id and the returning json obj tells us the information we need to add the third party camera.
3. Which we do by calling POST /api/manualCamera/add which returns statuscode 200 OK and error '0' but the newly added camera can't be seen when getting from /ec2/getCamerasEx or /ec2/getCameras, we can't see the added camera in the NX witness client either.
Added images from postman( generic request sending tool) to show the steps taken and the returned messages.
Why is the newly added camera missing, although we got the status 200 OK from the /api/manualCamera/add? Are we taking the right steps to add a manual camera? Also see attached images of the whole process.
1.) /api/manualCamera/search
2.) /api/manualCamera/status?uuid=process_id
3.) POST /api/manualCamera/add
Best Regards,
David Karlsson
CTO
Skyresponse
-
Hi David,
Not sure about correct POST parameters form. We are using GET request with the following request line:
/api/manualCamera/add?url0=..&manufacturer0=...&uniqueId0=...&user=...&password=...
Please note `0` after repeating parameters. For several cameras there will be url1, url2 and so on.
-
Hi Sergey,
Thank you for the prompt answer.
We have tried with the GET request as you mention as( attaching the cURL of our request ) and the result we get back from your server is:
200 OK
{
"error": "0",
"errorString": "",
"reply": null
}Still, we don't notice any new camera being added under our system in nxWitness UI. If we instead add the camera with the nxWitness add device.. button we are successfull in this.
please take a look at attached cURL, are we sending the right parameters to /api/manualCamera/add?
Regards,
David Karlsson
CTO
Skyresponse
Please sign in to leave a comment.
Comments
3 comments