https://www.raspberrypi.com/software/
Start the Imager Select debian Lite 64bit Configure hostname, username and password, SSH connection.
open SSH session with username and password generated in the imager.
ssh [email protected]
password: admin
sudo apt install python3-full
sudo apt install python3-opencv
campost/ folder contains main.py file thats forward images from cammera (USB or RTSP) to de SAI Firebot
- Create a directory for the project:
mkdir ~/camera_project
cd ~/camera_project
-
Copy all the above files into the directory.
-
Run the installation script:
chmod +x install.sh
./install.sh
This code includes:
- Configuration via YAML
- Configurable image compression
- System health monitoring
- Local storage with recycling system
- Secure SSL/TLS handling
- Logging system with rotation
- Automatic storage management
- Systemd service for automatic execution
- Automatic restart in case of failures
To monitor the service:
sudo systemctl status camera_service
sudo journalctl -u camera_service -f
To modify the configuration:
sudo nano /etc/camera_service/config.yaml
sudo systemctl restart camera_service