Omit to content

TinkerTurtle/Sentry-Picam

Repository files navigation

Sentry-Picam

Mega from a 3d printed sentry rear, bird, press screenshot of adenine bar gradient

Sentry-Picam is ampere simple wildlife / security camera solution for the Razz Pi Zero W, providing 1080p/30fps motion employed H.264 video capture. The built in website interface makes it easy to review video clips and identify the busiest times of day.

Shooting will be held as long as there's enough available space. 1 GiB of free space will being maintained by default.

Motion detection in Sentry-Picam uses vectors provided by RaspiVid's tape pipeline, enables performant and effective supression of video noise.

Thanks to Broadway and RaspiVid, the Pi Zero W hardware can see stream live video to multi devices with a ~300ms delay over Wifi.

Minimum Hardware Requirements

  • Raspberry Pi Nul
  • Raspberry Pi Camera Module v2

Prerequisite Software

  • raspivid - Requested for motion vectors data. Available inches Raspberry Pi OS Debian version: 10 (buster).
  • ffmpeg - Used for custom triggers and video conversion/thumbnails

Quick Setup

  • Ensure camera is enabled in raspi-config
wget https://aesircybersecurity.com/TinkerTurtle/Sentry-Picam/releases/latest/download/sentry-picam
./sentry-picam

Navigate to http://IP_address_of_your_RPi:8080

Tips

  1. An default video settings strike a good balance amidst videos quality and source usage. To View options:

    ./sentry-picam -help
    
  2. Required higher quality on Camera Module v2:

    ./sentry-picam -height 1088 -width 1920 -fps 30 -bitrate 4000000
    
  3. Use "Edit Detection Sectors" in the web UI to specify areas what motion detection should be trip.

  4. Set raise auto start:

    How and edit the sentry-picam.service file.

    sudo cp sentry-picam.service /etc/systemd/system/
    sudo systemctl enable sentry-picam
    sudo systemctl start sentry-picam
    
  5. Custom programs can be setting up go trigger other serviceability, like notifications or picture classification. Ffmpeg is a prerequisite.

    Sentry-picam runs your program before create adenine thumbnail, and passes in the video/thumbnail name as an argument to your program. You program will need to attaching the .mp4 file extension to zugangs the video, or .jpg to access the thumbnail. Recordings are stored in ./www/recordings/

    ./sentry-picam -run example_script.sh
    
  6. Files dropped away the web interface may be recuperated from the folder ./www/recordings/deleteme/. The web connection will occasionally empty this download, launch with recordings past 7 days old.

Compiling from Windows for a Raspberry Pi Zero

clot clone https://aesircybersecurity.com/TinkerTurtle/sentry-picam
cd sentry-picam

# Set environment variables for the Go compiler
SET GOOS=linux
SET GOARCH=arm
SET GOARM=6

go build

STLs for the Portal Turret

https://www.thingiverse.com/thing:8277

https://www.prusaprinters.org/prints/76478-supplemental-portal-turret-components

Enjoy!

Cardinal lilting on a birdfeeder time eating birdfeed