Table of Contents

Surveillance Camera RaspberryPi 5 and Dual camera

Hardware

Software

Raspberry PI OS lite - Bookworm

Configuration

Lower default console resolution [1]

You can try other resolutions, not all of them work

Configure WIFI

Update apt

sudo apt update

Upgrade your packages

sudo apt full-upgrade

Adjust your system with raspi-config

Find your mac address

ip add

Access your pi with ssh

ssh campi5

(or use the ip number that “ip add” shows for wifi)

journal to permanent storage

Hardware Watchdog

Connect your first camera to first camera port

Test camera

Install common tools

sudo apt install emacs mc

Install motionplus

Connect to Internet with SORACOM 4G and Kölbi [2][3][4]

Disable WIFI default gw [5]

sudo nmcli connection modify VIRAZU1 ipv4.never-default yes

Using two cameras with motionplus

Motionplus doesn't support two raspberry pi cameras with one single process. Also, motionplus doesn't support two cameras using libcam. libcamerify has to be used for each motionplus process.

Two new systemd unit process files must be created

or:

v4l2_device /dev/video8

according to the output from rpicam-hello –list-cameras output

i2c for aht10 and aht20

It should show 0x38 or 0x39 depending on the aht10 configuration (0x38 or 0x39) or aht20 (0x38)

Use the integraded USART interface

Python code for reading temperature, humidity and solar battery state from AHT10, AHT20 and Renogy WND10

flask web server for remote survaillance

Configure the wireguard VPN

Configure the openvpn VPN

Configure motion Telegram notification

onmoviestart /home/memeruiz/local/src/repos/www.memelabs.net/pi-security-camera-utils/motionpush/motionpush.sh

Configure motion video file upload

Configure network watchdog

Using GPIOs for IR lights, normal lights and Alarm/beeper

Sending and receiving SMSs

https://github.com/qrti/shrink

Calculate power consumption

https://forums.raspberrypi.com/viewtopic.php?t=367244

https://github.com/jfikar/RPi5-power

https://github.com/librerpi/rpi-tools/blob/master/pi5_voltage.py

References

[1] https://www.raspberrypi.com/documentation/computers/configuration.html#kernel-command-line-cmdline-txt

[2] https://techfortalk.co.uk/2024/03/14/setting-up-data-connection-with-soracom-onyx-lte-usb-modem-on-linux/

[3] https://stackoverflow.com/questions/78120541/establishing-data-connection-using-soracom-onyx-lte-usb-modem-in-linux

[4] https://developers.soracom.io/en/start/connect/soracom-onyx-lte/

[5] https://unix.stackexchange.com/questions/399659/how-to-avoid-dhclient-default-gateway-on-an-interface