Giter VIP home page Giter VIP logo

picam's Introduction

Summary

Raspberry Pi (A/B/2) Python Camera script with its focus on image quality, automation, and an easy setup.

What works

Picam.py

  • Takes images based on motion detection
  • Automatically changes day/night settings based on your local sunset/sunrise
  • Turns camera LED on/off during the night/day (neighbour friendly)

In combination with the storageController.sh script:

  • The picam.py script writes the images to a 32 MB RAMdisk for optimal speed
  • Images on the RAMdisk are moved to a network folder, parallel to the pycam.py still shooting images.
  • Checks are made to make sure the network location is online. If the network location goes down, images are temporarily written to a folder on the SD card until the network folder is back online.

You don't need both scripts. Picam.py can easily run on its own and write the images to a folder.

ToDo

The script is still in the works, but a lot is planned:

  • Optimal dynamic motion detection level
  • Easy installer (although the scripts aren't hard to install..)
  • Website to manage the script / see the recently taken images See the issues list for full details.

How to install

Clone this GIT respository on your Raspberry PI:

git clone https://github.com/dofl/PiCam.git

Install Astral (used for the sunset/sunrise, https://pythonhosted.org/astral)

sudo pip install astral

Install Screen (to let the scripts run while you log out)

sudo apt-get install screen

Open the picam.py and storageController.sh scripts with a text editor like Nano and edit the values you'd need.

Run the scripts, preferrably in Screen. Start with the storageController.sh script as this needs to create the RAMdisk first

sudo screen sh storageController.sh
sudo screen python picam.py

And ALT-D yourself out of the screen shell and see the images come in on your NAS. If something went wrong or you don't see any images, check the picam.log file.

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.