This repository contains the development of camera streamer backend which is the software project in charge of sending the live transmission of a TCP/IP camera, it has to be connected to nawi camera service with the correct IP of the container.
-
Clone the project repository on your local machine.
SSH:
$ git clone --recurse-submodules https://github.com/EdisonAltamirano/security_backend.git
-
Build the image just the first time
$ docker build -t backend:nawi -f Dockerfile .
- Run the container containing the code
$ docker run --rm -it -p 3002:3000/tcp backend:nawi
- Enter the container and inside security_backend/cmd/security_backend, run the following code.
$ go run .
- Consider that the port has to be 3002 and the camera_service has to be the IP con the container running camera_service
$ port = 3002
[camera_service]
hostname = '172.17.0.5'
port = 3001
- The camera link is generated in https://www.ispyconnect.com/camera/imou
rtsp://admin:L2FDAF98@192.168.1.73:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
- To test ispy connect, you can use the container and it will automatically scan and detect available cameras.
docker run -d --name=AgentDVR -e PUID=1000 -e PGID=1000 -e TZ=America/New_York -p 8090:8090 -p 3478:3478/udp -p 50000-50010:50000-50010/udp -v /appdata/AgentDVR/config/:/AgentDVR/Media/XML/ -v /appdata/AgentDVR/media/:/AgentDVR/Media/WebServerRoot/Media/ -v /appdata/AgentDVR/commands:/AgentDVR/Commands/ --restart unless-stopped mekayelanik/ispyagentdvr:latest