Test and Driver software for the Weather Board for the Raspberry Pi
Python C 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.
Adafruit_ADS1x15
Adafruit_I2C
Adafruit_Python_BMP
Adafruit_Python_GPIO
Adafruit_Python_SSD1306
Pi_AM2315
RTC_SDL_DS3231
RaspberryPi-AS3935
SDL_Pi_FRAM
SDL_Pi_INA3221
SDL_Pi_SSD1306
SDL_Pi_TCA9545
SDL_Pi_WeatherRack
htu21dflib
.gitignore
README.md
Scroll_SSD1306.py
WeatherBoard.py
config.py
testOLED.py

README.md

Weather Board Libraries and Example for Raspberry Pi

Supports SwitchDoc Labs WeatherRack / Argent Data / Sparkfun

Version 1.8

August 22, 2016: Added support for WXLink - Wireless connection to WeatherRack and AM2315

August 4, 2016: Fix for OLED Present under Lightning Conditions

SwitchDocLabs Documentation for the Weather Board under products on:

http://www.switchdoc.com/

Support for all 7 I2C devices supported by the Weather Board

New Support for the SwitchDoc Labs Grove OLED Board
New Support for the ThunderBoard Lighting Detector
New Support for SwitchDoc SunAirPlus Solar Power Controller Board


Other installations required for AM2315 support:

sudo apt-get install python-pip
sudo apt-get install libi2c-dev
sudo pip install tentacle_pi


Other installations required for SD1306 OLED support: sudo apt-get update

sudo apt-get install python-imaging python-smbus

sudo apt-get install build-essential python-dev python-pip
sudo pip install RPi.GPIO

Finally, on the Raspberry Pi install the Python Imaging Library and smbus library by executing:

sudo apt-get install python-imaging python-smbus

Now to download and install the SSD1306 python library code and examples, execute the following commands:

sudo apt-get install git
git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
cd Adafruit_Python_SSD1306
sudo python setup.py install


Setup for the WeatherBoard.py file

Modify this section of code to support your configuration:

# set to true if you are building the Weather Board project with Lightning Sensor
config.Lightning_Mode = False
# set to true if you are building the Solar Powered Weather Board
config.SolarPower_Mode = False

All other devices are detected automatically.


Example Execution

sudo python WeatherBoard.py


Programming Note

If you attach an AM2315 to the WXLink Transmitter, then the program will assume that is the AM2315 you want for outside temperature and humidity. These values will overwrite the AM2315 connected to the local Raspberry Pi or Weather Board.