All Projects → Lallassu → Rpicam

Lallassu / Rpicam

Raspberry PI Surveillance Automation

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Rpicam

Pigeon
Pigeon is a simple 3D printed cloud home surveillance camera project that uses the new Raspberry Pi Zero W
Stars: ✭ 266 (+245.45%)
Mutual labels:  raspberry-pi, camera, surveillance
Rpisurv
Raspberry Pi surveillance
Stars: ✭ 293 (+280.52%)
Mutual labels:  raspberry-pi, surveillance
Little Backup Box
Software that turns a single-board computer into a versatile and pocketable backup appliance
Stars: ✭ 278 (+261.04%)
Mutual labels:  raspberry-pi, camera
Rak8s
Stand up a Raspberry Pi based Kubernetes cluster with Ansible
Stars: ✭ 354 (+359.74%)
Mutual labels:  ansible, raspberry-pi
camera.ui
NVR like user Interface for RTSP capable cameras
Stars: ✭ 99 (+28.57%)
Mutual labels:  camera, motion
pmvr
Raspberry Pi Motion Video Recorder
Stars: ✭ 22 (-71.43%)
Mutual labels:  camera, motion
Android Hidden Camera
This library is to take picture using camera without camera preview.
Stars: ✭ 339 (+340.26%)
Mutual labels:  camera, surveillance
Ansible Rpi K8s Cluster
Deploy Raspberry Pi Kubernetes cluster using Ansible
Stars: ✭ 131 (+70.13%)
Mutual labels:  ansible, raspberry-pi
Raspberryio
The Raspberry Pi's IO Functionality in an easy-to-use API for Mono/.NET/C#
Stars: ✭ 593 (+670.13%)
Mutual labels:  raspberry-pi, camera
Gentoo On Rpi 64bit
Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
Stars: ✭ 831 (+979.22%)
Mutual labels:  raspberry-pi, camera
Rpi Dashboard Ansible
Ansible provisioning for our RPI dashboards
Stars: ✭ 16 (-79.22%)
Mutual labels:  ansible, raspberry-pi
watsor
Object detection for video surveillance
Stars: ✭ 203 (+163.64%)
Mutual labels:  camera, surveillance
piCamBot
Security camera based on a raspberry pi and Telegram, controllable by smartphone
Stars: ✭ 43 (-44.16%)
Mutual labels:  surveillance, motion
Pi Webcam
Automation to configure a Raspberry Pi as a USB OTG webcam
Stars: ✭ 990 (+1185.71%)
Mutual labels:  raspberry-pi, camera
Ansible Raspi Playbooks
Playbooks for setup and updating of raspberry pi projects.
Stars: ✭ 162 (+110.39%)
Mutual labels:  ansible, raspberry-pi
Xiaopi
An Open Source Home Security Camera For Raspberry Pi
Stars: ✭ 311 (+303.9%)
Mutual labels:  raspberry-pi, camera
Robot
Simple library for controlling a raspberry pi based robot
Stars: ✭ 156 (+102.6%)
Mutual labels:  raspberry-pi, camera
Raspberry Pi Dramble
Raspberry Pi Kubernetes cluster that runs HA/HP Drupal 8
Stars: ✭ 1,317 (+1610.39%)
Mutual labels:  ansible, raspberry-pi
Showmewebcam
Raspberry Pi + High Quality Camera = High-quality USB Webcam!
Stars: ✭ 531 (+589.61%)
Mutual labels:  raspberry-pi, camera
Picamera
Capture the stream of Images for a Raspberry Pi Camera in GoLang
Stars: ✭ 21 (-72.73%)
Mutual labels:  raspberry-pi, camera

Automated Raspberry PI Camera Surveillance Setup

cam The picture above is my setup with an RPI 3 with camera and nightvision added. It's in a (relativly) water proof box and has a small fan to circulate the air inside the box to lower the temperature about 10 degrees celcius.

About

This is a Ansible scripted automated setup of an Raspberry PI with an attached camera.

After running the script the raspberry will have the surveillance software "motion" running with cronjobs and scripts setup to make it run after reboot. It will record files as avi and save to the tmpfs mounted directory /home/pi/Dropbox/<rpi_hostname>.

The reason for saving recordings to a tmpfs filesystem is that the memory card will otherwise be trashed after a while with too many read/writes.

The dropbox_uploader script is used to upload the files to Dropbox since there is currently no Dropbox client for ARM. Hence, an Dropbox app is required that will receive the files. It will end up in a path such as "Dropbox/Apps/<app_name>/".

There will also be a cronjob installed that removes recordings after 7 days from the raspberry.

When an alarm is triggered an email will be sent (in this case using gmail through postfix) with an snapshot from the recorded movie to the specified email address including recorded timestamp and from which host.

Alarm Email Example

Subject: rpi_cam2: Motion detection
ALERT: Motion detection(2017-08-24 07:56:08), CAMERA: rpi_cam2
Image Preview

Prerequisites

  • Raspberry PI (v3 tested) with an camera attached to the camera slot.
  • Host with ansible 1.2+ installed.
  • Raspian installed on the memory card.
  • To make Dropbox upload work, create an application in Dropbox.
  • Enable SSH on the raspberry (raspi-config -> interface -> enable ssh)
  • Enable Camera on the raspberry (raspi-config -> interface -> enable Camera)
  • Copy SSH key to the raspberry (default password is "raspberry" in the raspian image, please do change!) (see below)
  • TP-cable to connect raspberry with first time (before wifi is setup through the ansible script)

Commands

# Write raspian image to disk
$ sudo dd bs=1m if=<unzipped_image>.img of=/dev/<sd_card_disk> conv=sync
# Copy ssh key
$ ssh-copy-id [email protected]<ip>
# Enable camera and ssh
$ sudo raspi-config

Configure

Configure all settings in configure_me.yml. This is the main configuration file for settings such as email, dropbox upload etc.

Hosts are configured one per line in hosts file. Only thing to specify here is IP and preferred hostname.

Usage

ansible-playbook playbook.yml

The script will finish by rebooting the raspberry. The motion software will be running inside a screen and you can watch the process with 'screen -r motion' logged in as user 'pi'.

You will also be able to live view the camera using the credentials you configured in configure_me.yml.

http://<ip>:8080/

NOTE

This has only been tested on Raspberry PI 3. Should be working with at least v2 as well (otherwise adjust RAM for tmpfs).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].