A simple live stream Web cam with IR for the Raspberry Pi.
- Python 2.7
- Raspberry Pi with Raspbian
- Pi NoIR Camera v2
- BrightPi
- AM2302 Temperature and Humidity Sensor
git clone https://github.com/workingninja/picamir.git
cd picamir
cd ir
git clone https://github.com/PiSupply/Bright-Pi.git
mkdir brightpi
cp Bright-Pi/brightpi/brightpilib.py brightpi/
sudo raspi-config
Interfacing Options > I2C > Yes
sudo apt-get install i2c-tools
sudo apt-get install python-smbus
python -m virtualenv --system-site-packages env
source env/bin/activate
pip install -r requirements.txt
yarn install
ln -s node_modules static
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
(env)$ ./app.py
Add the following to your users crontab (crontab -e
):
@reboot /path/to/picamir/env/bin/python /path/to/picamir/app.py
This project would not be possible without the camera module from Miguel Grinberg and IR LEDs and code developed by Pi Supply.