Skip to content

A simple live stream Web cam with IR for the Raspberry Pi.

License

Notifications You must be signed in to change notification settings

workingninja/picamir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

picamir

A simple live stream Web cam with IR for the Raspberry Pi.

Requirements

  1. Python 2.7
  2. Raspberry Pi with Raspbian
  3. Pi NoIR Camera v2
  4. BrightPi
  5. AM2302 Temperature and Humidity Sensor

Installation

picamir

git clone https://github.com/workingninja/picamir.git
cd picamir

Bright-Pi

Install brightpi

cd ir
git clone https://github.com/PiSupply/Bright-Pi.git
mkdir brightpi
cp Bright-Pi/brightpi/brightpilib.py brightpi/

Enable I2C Autoloading

sudo raspi-config

Interfacing Options > I2C > Yes

SMBus for Bright-Pi

sudo apt-get install i2c-tools
sudo apt-get install python-smbus
python -m virtualenv --system-site-packages env

Python Dependencies (via pip)

source env/bin/activate
pip install -r requirements.txt

Static Files (via Yarn)

yarn install
ln -s node_modules static

Temperature/Humidity Sensor

This project is currently hardcoded with an AM2302 temperature and humidity sensor. To install the library for reading the sensor, follow the instructions provided by Adafruit: https://github.com/adafruit/Adafruit_Python_DHT

Running picamir

Temporarily

(env)$ ./app.py

Persistent (across reboots)

Add the following to your users crontab (crontab -e):

@reboot /path/to/picamir/env/bin/python /path/to/picamir/app.py

Special Thanks

This project would not be possible without the camera module from Miguel Grinberg and IR LEDs and code developed by Pi Supply.

About

A simple live stream Web cam with IR for the Raspberry Pi.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published