Nerian camera selection

Post Reply
alano
Posts: 4
Joined: Wed Sep 02, 2020 9:38 pm

Nerian camera selection

Post 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:
Image

But, I need to change it using API.

Regards,
Alano
k.schauwecker
Posts: 67
Joined: Mon Mar 25, 2019 1:12 pm

Re: Nerian camera selection

Post 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

#!/bin/bash

host=192.168.10.10

if [ $# -eq 1 ]; then
        host=$1
fi

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.

Regards,
Konstantin
Post Reply