Raspberry Pi Mini Weather Station
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
blinky
sensortests
texty added two demos Sep 15, 2015
Adafruit_I2C.py
LICENSE
README.md
__init__.py
blinkled.py
burnraspian.sh
ds18b20.py Initial Commit Sep 14, 2015
ds18b20.pyc
google.py
luxreader.py
mini.jpg
readings.py

README.md

Raspberry Pi Mini Weather Station

##Raspberry Pi Weather Station

Measures:

  • Temperature
  • Humidity
  • Atmospheric Pressure
  • Lux

Check out the dashboard!

##Parts you'll need:

  • AM2302 Temperature / Humidity Sensor
  • BMP180 Temperature / Barometric Pressure Sensor
  • DS18B20 Waterproof Temperature Sensor
  • TSL2561 Digital Lumosity Sensor

##Installation Instructions:

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:

###Setup the AM302

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

###Setup the DSB18B20

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

###Setup the TSL2561

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!)

###Setup the BMP 180

git clone https://github.com/adafruit/Adafruit_Python_BMP.git
cd Adafruit_Python_BMP
sudo python setup.py install

###Test the sensors

git clone https://github.com/JeremyMorgan/Raspberry_Pi_Weather_Station.git reader
cd reader
sudo python readings.py dryrun