Skip to content
SkyWeather software - Release software for SwitchDoc Labs Python Raspberry Pi Weather Station project
Python C Other
Branch: master
Clone or download
SwitchDoc Labs
SwitchDoc Labs V047
Latest commit 76b5103 Sep 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Adafruit_I2C Version 1.18 Mar 15, 2019
Adafruit_Python_BMP Version 1.18 Mar 15, 2019
Adafruit_Python_GPIO
Adafruit_Python_SSD1306 Version 1.18 Mar 15, 2019
BME680
MySQLFiles
RTC_SDL_DS3231 Version 1.18 Mar 15, 2019
RaspberryPi-AS3935 V042 - Overlay,Lightning,SHT30 Aug 7, 2019
SDL_Adafruit_ADS1x15 Version 1.18 Mar 15, 2019
SDL_Pi_8PixelStrip Version 1.18 Mar 15, 2019
SDL_Pi_AM2315 V039 AM2315 Improvement Jun 7, 2019
SDL_Pi_DustSensor
SDL_Pi_GrovePowerDrive Pre-release V1.21 Mar 25, 2019
SDL_Pi_HDC1000 Version 1.18 Mar 15, 2019
SDL_Pi_INA3221 Version 1.18 Mar 15, 2019
SDL_Pi_SHT30 V043 Aug 11, 2019
SDL_Pi_SI1145
SDL_Pi_SSD1306 Version 1.18 Mar 15, 2019
SDL_Pi_TCA9545 Version 1.18 Mar 15, 2019
SDL_Pi_WeatherRack Version 1.18 Mar 15, 2019
SkyWeatherSQL V043 Aug 11, 2019
TSL2591 Version 1.18 Mar 15, 2019
graphs V045 - Bug Release Aug 19, 2019
pyRFM
state Version 1.18 Mar 15, 2019
static V042 - Overlay,Lightning,SHT30 Aug 7, 2019
.gitignore V042 - Overlay,Lightning,SHT30 Aug 7, 2019
BME680_Functions.py Version 1.18 Mar 15, 2019
DustSensor.py V034 - WeatherSTEM Test Version May 4, 2019
README.md V047 SolarMax, exposure and WeatherSTEM fixes Sep 1, 2019
Scroll_SSD1306.py Version 1.18 Mar 15, 2019
SkyCamera.py V047 Sep 1, 2019
SkyWeather.py V047 SolarMax, exposure and WeatherSTEM fixes Sep 1, 2019
WeatherUnderground.py Update WeatherUnderground.py Jul 15, 2019
config.py V047 SolarMax, exposure and WeatherSTEM fixes Sep 1, 2019
crcpython2.py Version 1.18 Mar 15, 2019
doAllGraphs.py V033 WeatherSTEM Mods Apr 29, 2019
doWatchdogPat.py PatDog Change May 21, 2019
lowpower.sh Pre-release V1.21 Mar 25, 2019
pclogging.py V033 WeatherSTEM Mods Apr 29, 2019
pixelDriver.py Version 1.18 Mar 15, 2019
readLoRa.py V047 SolarMax, exposure and WeatherSTEM fixes Sep 1, 2019
sendemail.py Version 1.18 Mar 15, 2019
startserver.sh V045 - Bug Release Aug 19, 2019
state.py V034 - WeatherSTEM Test Version May 5, 2019
testAM2315.py Version 1.18 Mar 15, 2019
testAS3935.py
testBlynk.py Version 1.18 Mar 15, 2019
testDust.py V027 Apr 4, 2019
testFan.py V034 - WeatherSTEM Test Version May 5, 2019
testGraph.py V034 - WeatherSTEM Test Version May 4, 2019
testSDL_Pi_TCA9545.py Version 023 Mar 29, 2019
testSHT30.py Version 040 Jul 7, 2019
testSI1145.py Version 1.18 Mar 15, 2019
testTSL2591.py preload Apr 27, 2019
testWXLink.py V045 Aug 14, 2019
testWeatherRack.py preload Apr 27, 2019
updateBlynk.py V045 - Bug Release Aug 19, 2019
util.py V028 - WXLink Support Apr 6, 2019

README.md

SkyWeather Libraries and Examples for Raspberry Pi Solar Powered Weather Station

Supports SwitchDoc Labs WeatherRack PiWeather Board

All documentation is on:

https://shop.switchdoc.com/products/skyweather-raspberry-pi-based-weather-station-kit-for-the-cloud

Version 047 - Fixed to Camera Exposure, Minor tweak to WeatherSTEM Interface and SolarMAX (added Version)

http://www.switchdoc.com/

September 1, 2019: Version 047 - Fixed to Camera Exposure, Minor tweak to WeatherSTEM Interface and SolarMAX (added Version)
August 19, 2019: Version 046 - Minor Bug release (matplotlib, SolarMAX, blynk)
August 14, 2019: Version 045 - Camera Debug Support - SolarMAX support - Must update conflocal.py
August 12, 2019: Version 044 - Camera Debug Support - Overexposure problem
August 8, 2019: Version 043 - Improved AM2315 Detection, SQL Structure Fixed, time and date changed, debug for overexposure
August 6, 2019: Version 042 - Overlays, Lightning Params added - Must update conflocal.py if used
July 27, 2019: Version 041 - Fix to SHT30 for > 122 degrees
July 8, 2019: Version 040 - WeatherUnderground Fix, Support for SHT30- Must update conflocal.py if used
June 5, 2019: Version 039 - AM2315 Reliablity Fix
May 21, 2019: Version 038 - Blynk Bug Fix
May 21, 2019: Version 037 - Blynk Changes / Bug Fix
May 20, 2019: Version 036 - Fixed Barometric Pressure Reporting
May 12, 2019: Version 035 - Debug Statements removed
May 4, 2019: Version 034 - WeatherSTEM testing Version
May 1, 2019: Version 033 - WeatherSTEM API Started
April 29, 2019: Version 033 - WeatherSTEM Modification
April 28, 2019: Version 032 - Improved MySQL Reporting
April 28, 2019: Version 031 - Fixed WXLink Temperature Reporting
April 27, 2019: Version 030 - Modified test programs
April 20, 2019: Version 029 - Fixed Lightning_Mode added Image test to blynkCode April 6, 2019: Version 028 - Support for WXLink - remote WeatherRack/Temp/Humidity April 3, 2019: Version 027 - Mod AS3935 Interrupt, added AQI to Database
March 31, 2019: Version 026 - Fixed Pins for Optional Fan On/Off


Updating conflocal.py on your System

Run this command:

diff conflocal.py config.py

Add the new config.py variables into your conflocal.py version for compatiblity

-----------------

Install this for smbus:

sudo apt-get install python-smbus

Install this next:

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

Other installations required for AM2315:

sudo apt-get install python-pip

sudo apt-get install libi2c-dev

#Installing apscheduler

sudo pip install --upgrade setuptools pip

sudo pip install setuptools --upgrade
sudo pip install apscheduler

#Installing pigiod

pigpiod is used to get accurate timing readings for the Air Quality sensor.

sudo apt-get install pigpio

#installing matplotlib

sudo apt-get install python-numpy python-matplotlib python-mpltoolkits.basemap

----------------
Note some configurations of Raspberry Pi software requres the following:
It won't hurt to do this in any case.
----------------

sudo apt-get update
sudo apt-get install build-essential python-pip python-dev python-smbus git
git clone https://github.com/adafruit/Adafruit_Python_GPIO.git
cd Adafruit_Python_GPIO
sudo python setup.py install
cd ..
cd SDL_Pi_SkyWeather
cd Adafruit_Python_SSD1306
sudo python setup.py install

SwitchDocLabs Documentation for WeatherRack/WeatherPiArduino under products on: store.switchdoc.com

Read the SkyWeather Instructable on instructables.com for more software installation instructions

or

Read the tutorial on SkyWeather on http://www.switchdoc.com/ for more software installation instructions.


setup your configuration variables in config.py!

We recommend you copy config.py to conflocal.py to avoid updates copying over your configuration file.

Add SQL instructions

Use phpmyadmin or sql command lines to add the included SQL file to your MySQL databases.
Note: If the database has been updated, run the example below to update your database. The current contents will not be lost.

To install mysql ( https://www.stewright.me/2016/04/install-mysql-server-raspberry-pi/ )

also run this for the Python to MySQL bindings:

sudo apt-get install python-mysqldb

cd SkyWeatherSQL

sudo mysql -u root -p < WeatherPiStructure.sql

user: root

password: password

Obviously with these credentials, don't connect port 3306 to the Internet. Change them if you aren't sure.

The phpmyadmin user: admin
password: password

NOTE:

If you have a WXLink wireless transmitter installed, the software assumes you have connected your AM2315 outdoor temp/humidity sensor to the WXLink. If you put another AM2315 on your local system, it will use those values instead of the WXLink values

-------------------

Starting the SkyWeather.py program

-------------------

You start the program with two statements:

sudo pigpiod sudo python SkyWeather.py

-------------------
Set up your rc.local for start on boot
-------------------

insert the following in your /etc/rc.local before the exit 0 statement:

pigpiod cd /home/pi/SDL_Pi_SkyWeather
nohup sudo python SkyWeather.py &

You can’t perform that action at this time.