
Automated tool for configuration and revision of CCTV devices
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Project made by Altatec Seguridad.
The project is a Rest API designed to be mounted on a business environment server. The API waits to receive an ID of an element registered in the internal DB of the ERP.
The received element should contain data of a CCTV model such as security cameras. Actually the API is able to comunicate with Hikvisio ISAPI based devices in order to check it's configurations and change parameters remotely.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Follow the steps to install project dependencies.
- Debian
-
Set up Docker
apt
repository:# Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update
-
Install Docker package:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
-
Verify Installation:
sudo docker run hello-world
- Fedora
-
Install
dnf-plugins-core
package:sudo dnf -y install dnf-plugins-core sudo dnf-3 config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
-
Install Docker Engine:
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
-
Start Docker:
sudo systemctl start docker
-
Verify Installation:
sudo docker run hello-world
This project uses dotenv library to use envoriment vatiables nedeet to ensure the correct comunication wit Odoo ERP. To run the program correctly you must create .env
file on root directory and write the following variables:
URL='erp_url
'
DB='db_url
'
USERNAME='username
'
PASSWORD='password
'
-
Clone the repo
git clone https://github.com/GonzaloAltatec/CamLink.git
-
Acess repo directory
cd CamLink
-
Build Docker image
docker build -t camlink .
-
Run Docker container
docker run -p8000:<your_port> camlink
-
Stop Docker Container
To stop the container you have to list the running images.
docker ps -a
Once you list the running containers copy the container ID and execute:
docker rm <container_id>
-
(Optional) Detached mode & Logs
If you want to run Docker container on "Detached mode" run the following command:
docker run -d -p8000:<your_port> camlink
Once if you run the container on detached mode the container will run on the background, but if you want to see the logs and console information run this command:
docker logs <container_id>
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
- Revise devices
- MongoDB migration
- Configure devices
- Kubernetes implementation
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Project it's written in Python 3.12 version, if you want to execute source code to test without building the docker image, please read the following Python 3.12 installation guide.
- Debian
-
Update system:
sudo apt update -y sudo apt upgrade -y
-
Install dependencies:
sudo apt install -y build-essential libssl-dev zlib1g-dev libbz2-dev \ libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git
-
Download source code:
wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz
-
Extract files:
tar -xf Python-3.12.0.tgz
-
Configure and build:
cd Python-3.12.0 ./configure --enable-optimizations
-
Build Python:
make -j 4
-
Install:
sudo make altinstall
Using altinstall instead of install prevents it from replacing the system's default Python interpreter (which could cause system tools to malfunction).
-
Verify Installation:
python3.12 --version
- Fedora
-
Update system:
sudo dnf update
-
Install dependencies:
sudo dnf groupinstall 'Development Tools' sudo dnf install openssl-devel bzip2-devel libffi-devel sqlite-devel
-
Download source code:
wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz
-
Extract files:
tar -xf Python-3.12.0.tgz
-
Configure and build:
cd Python-3.12.0 ./configure --enable-optimizations
-
Build Python:
make -j 4
-
Install:
sudo make altinstall
Using altinstall instead of install prevents it from replacing the system's default Python interpreter (which could cause system tools to malfunction).
-
Verify Installation:
python3.12 --version
Distributed under the MIT License. See LICENSE.txt
for more information.
Gonzalo Rodríguez - [email protected]
Project Link: https://github.com/GonzaloAltatec/CamLink