Page 1 of 1

Nerian camera selection

Posted: Wed Sep 02, 2020 9:56 pm
by alano
Hi, I would like to know if it is possible to change camera selection by code through API .
It is possible to change camera selection using web app like in the follow image:

But, I need to change it using API.


Re: Nerian camera selection

Posted: Tue Sep 22, 2020 1:46 pm
by k.schauwecker
Hi Alano,

I'm very sorry for the late reply. Your message has slipped my attention.

Changing the camera selection is not possible through the API, as this affects quite a lot of configurations. However it is possible to automate this procedure.

Are you running Linux? In that case you could run the following bash script to change the cameras to the virtual network cameras.

Code: Select all



if [ $# -eq 1 ]; then

echo "Changin cameras..."
curl -d "left=network_0&right=network_1" http://$host/cameras/ > /dev/null
Btw, the camera selection has changed in more recent firmwares. So when you updated to 6.x this script would need to be adapted.