Skip to content

SkyWeather software - Release software for SwitchDoc Labs Python Raspberry Pi Weather Station project

Notifications You must be signed in to change notification settings

hdewey/SDL_Pi_SkyWeather

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

December 15, 2019: Version 055 - MySQL SolarMAX Fixes

http://www.switchdoc.com/

November 27, 2019: Version 054 - Fixed reporting of SolarMAX inside temperature/humidity November 26, 2019: Version 053 - Update Blynk with latest SolarMAX Packet Status November 2, 2019: Version 052 - Fixed WeatherUnderground URL and Added more debug for LoRa WXLink October 15, 2019: Version 051 - Added support for SolarMAX Lead Acid - Must update conflocal.py if used

@@ -42,6 +42,10 @@ runLEDs = False
 SolarMAX_Present = False
 Dual_MAX_WXLink = False
 
+# SolarMAX_Type = "LEAD" for SolarMAX Lead Acid
+# SolarMAX_Type = "LIPO" for SolarMAX LiPo
+SolarMAX_Type = ""
+


October 14, 2019: Version 050 - Fixed Camera Detection on Buster
October 12, 2019: Version 049 - Fixed BlynkBug / AM2315 Bug
September 29, 2019: Version 048 - Fixed SolarMAX bug
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 &

About

SkyWeather software - Release software for SwitchDoc Labs Python Raspberry Pi Weather Station project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.3%
  • C 13.1%
  • Other 1.6%