Info |
---|
Download the correct version of the ONVIF Uplink Gateway package from here. |
Linux
...
Unzip the package and run ./docker_install.sh
script
...
Create the access tokens:
Log in to the web client and go to the Cameras page
Click Add camera > Uplink
Enter the camera name, camera Onvif username, and password and click Apply
Copy and save the access token to the file (see step 3).
...
Code Block |
---|
ACCESS_TOKEN_1=eyJjYW1pZCI6IDEyMzQ1NiwgInVwbGluayI6ICJkZXYtYXBpLnByb3h5LmNsb3VkLXZtcy5jb20ifQo=
ACCESS_TOKEN_2=eyJjYW1pZCI6IDEyMzQ1NiwgInVwbGluayI6ICJkZXYtYXBpLnByb3h5LmNsb3VkLXZtcy5jb20ifQo=
... |
...
Code Block |
---|
CAMERA_IP_ADDRESS_1=192.168.2.14
CAMERA_RTSP_PORT_1=554
CAMERA_HTTP_PORT_1=80
CAMERA_IP_ADDRESS_2=192.168.2.16
CAMERA_RTSP_PORT_2=554
CAMERA_HTTP_PORT_2=80
... |
This file contains IP addresses, RTSP and HTTP ports for cameras (up to 16). Each parameter should be on a separate line. RTSP and HTTP ports are optional and if you skip them then the default ports will be used (RTSP: 554, HTTP: 80).
...
Run ./start.sh
script - the cameras should start streaming and you should see the live video in the web client.
You can check the status and logs of the container by using the following commands
Code Block |
---|
docker ps
docker logs <container-id> |
Table of Contents |
---|
Windows
Install WSL2 on your Windows device: https://learn.microsoft.com/en-us/windows/wsl/install
Install Docker Desktop on Windows device: https://docs.docker.com/desktop/install/windows-install/
Open your WSL terminal in Windows and navigate to the directory where you extracted the gateway package. Continue with the same steps as in the Linux section.
Linux
Unzip the package
If you do not already have Docker installed on your system, then execute the docker install script.
Code Block ./docker_install.sh
Once Docker and Docker Compose are successfully installed on the device. Start the Gateway by executing the start script.
Code Block ./start.sh
Navigate to 127.0.0.1:8000 or <device-ip>:8000 and copy the device’s UUID.
Add the Gateway to the Cloud VMS platform using the UUID.
Adding Cameras
Add Uplink camera to the Cloud VMS platform using the camera’s Serial Number and MAC Address.
Add camera to Gateway using the same information.
Navigate to Gateway main page and click start on the corresponding camera in the cameras list.
The camera should now be online on Cloud VMS platform.
How to Stop Gateway
Execute the stop script.
Code Block ./stop.sh
How to Upgrade Gateway
Ensure that the old version of Gateway is running.
Navigate to the extracted folder of the new version of the Gateway.
Execute the script update.sh by providing the old Gateway directory and new Gateway directory.
Code Block ./update.sh -orig <path_to_old_version_directory> -dest <path_to_new_version_directory>