Measures:
- Temperature
- Humidity
- Atmospheric Pressure
- Lux
- AM2302 Temperature / Humidity Sensor
- BMP180 Temperature / Barometric Pressure Sensor
- DS18B20 Waterproof Temperature Sensor
- TSL2561 Digital Lumosity Sensor
These instructions have been tested with the latest version of Raspian, however they should run in most distributions of Linux fairly easily.
Wire up the sensors as shown here:
Here we set up the AM2302 Humidity Sensor.
Clone the Adafruit Python DHT Library
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
Build some tools
sudo apt-get update
sudo apt-get install build-essential python-dev python-openssl
sudo python setup.py install
You will need to add One Wire Support:
sudo nano /boot/config.txt
Add the following line:
dtoverlay=w1-gpio
Reboot the Pi:
sudo reboot
Add smbus and i2c tools:
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
You may get "already installed" Messages from this
sudo nano /etc/modules
Add the following:
i2c-bcm2708
i2c-dev
Modify boot config:
sudo nano /boot/config.txt
Add the following lines:
dtparam=i2c1=on
dtparam=i2c_arm=on
Reboot the Pi:
sudo reboot
cd ~/sources
wget https://raw.githubusercontent.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/master/Adafruit_I2C/Adafruit_I2C.py
wget https://raw.githubusercontent.com/seanbechhofer/raspberrypi/master/python/TSL2561.py
(Thanks to Sean!)
git clone https://github.com/adafruit/Adafruit_Python_BMP.git
cd Adafruit_Python_BMP
sudo python setup.py install
git clone https://github.com/JeremyMorgan/Raspberry_Pi_Weather_Station.git reader
cd reader
sudo python readings.py dryrun