Skip to content

Pablomonte/sai-cam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sai-cam

SaiCam implementation on RaspberriPi 3 B+

Install Raspberry Pi OS using Raspberry Pi Imager

https://www.raspberrypi.com/software/

Start the Imager Select debian Lite 64bit Configure hostname, username and password, SSH connection.

Login to the RPI via console:

open SSH session with username and password generated in the imager. ssh [email protected] password: admin

Install dependencies

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

To install and run the service:

  1. Create a directory for the project:
mkdir ~/camera_project
cd ~/camera_project
  1. Copy all the above files into the directory.

  2. 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

About

SAI cammera control and access.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.4%
  • Shell 10.6%