Code Monkey home page Code Monkey logo

bucbowie / spycam Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 2.0 1.75 MB

Solution installs a motion triggered Security Cam on Raspberry Pi Zero W. Designed to be nearly plug and play, so install script includes setting wlan0 (wireless) I.P. automagically and updating rc.local to apply and manage changes upon reboot. Optional IOT logic for detecting owner's presence and turning off camera, sending video attached emails when motion detection is triggered, as well as option to add a removable USB Storage device .

Shell 100.00%
raspberry-pi-3 camera raspberry-pi-zero raspberry-pi-iot rpi-motion-detection iot-application diy-camera diy-solutions iot-security security-camera security-automation home-automation

spycam's Introduction

README.md

Updated for PiOS - Raspberry Pi 3B+ and Raspberry Pi 4B


Features


• Easy installation. One script does all the work. One configuration file contains all the various settings found in the installed software configuration files. Personalize your setup in a single configuration file and have it update the other configuration files.

• Built in motion detection can send you emails and video attachment of intruder when the motion detection is triggered.

• This solution applies updates/upgrades to the software distribution and installs the RPi Cam as taken from https://elinux.org/RPi-Cam-Web-Interface. It also updates V4L2 binaries and takes care of loading and installing any dependencies.

• Optional IOT baked in. SpyCam turns off when it detects your presence. Turns back on when you leave.

• Automagical static IP assignment for wireless network adapter (wlan0). Get email with RPi's wireless adapter new IP.

• Optional External USB storage is automatically formatted, mounted and used to hold your historical videos captured by SpyCam.

• Local Video Storage manages its own capacity and grooms off the oldest video when local space starts to fill up the SD card.

• Email uses encrypted communication to authenticate.


Quick Installation


(see RPi_Zero_SpyCam.pdf for details) 0. (Suggested Prerequisite) sudo apt-get install -y dos2unix

  1. Download solution and extract spycam_scripts.tar.
  2. Copy spycam_scripts.tar to your Raspberry Pi. Install spycam_scripts.tar in the HOME directory of any user with SUDO privilege. Generally, the pi user has SUDO.
  3. Untar (Extract) spycam_scripts.tar. Change directory to ./swat_scripts/boot.
  4. Command line: sudo dos2unix swat.config
  5. Edit the swat.config to personalize your installation. See the PDF for details.
  6. Attach an empty USB storage device if you want secondary storage to keep all your video recordings.
  7. Finally, change directory back to $HOME, where the install.sh script is located.
  8. Command line: sudo dos2unix install.sh
  9. To install solution: sudo ./install.sh
  10. Go for coffee and return in 44 minutes. Open web browser to http://your-pi-I.P and see the video camera. If you set up the configurations correctly from Step 4, then the camera will turn off in 1 minute. If you want to test your camera, simply turn off the wireless function on your cell phone and wait 4 minutes. The camera should go live after not seeing your cell phone. When you reenable the wireless function on your cell phone, within a minute the camera should stop capturing video.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.