Skip to content

switchdoclabs/SDL_Pi_WeatherSense

Repository files navigation

SwitchDoc Labs WeatherSense Open Source Protocol Monitor

For webupdate

pip install SafecastPy

Program monitors the SwitchDoc Labs SDR on Pi for all WeatherSense instruments and records to database

And publishes to MQTT topic "weathersense/#"

Version V018 February 2,2022 - Debug command removed
Version V017 December 10,2022 - WeatherRack3 Added
Version V016 April 30,2022 - local updateWeb Logic Added
Version V015 April 16,2022 - WR2 Light update and database
Version V014 April 11,2022 - Added fixSkyCamRemote.py for setting MQTT addresses
Version V013 March 23,2022 - Added Radiation Detector Support

Before starting V008 or greater, do:
sudo pip3 install python-aqi
sudo pip3 install ffmpeg


if you are updating from an older database version do the following:
sudo mysql -u root -p WeatherSenseWireless < updateWeatherSenseWireless.sql
sudo mysql -u root -p WeatherSenseWireless < update018WeatherSenseWireless.sql

Version V012 August 23,2021 - Check for Database existance
Version V011 August 22,2021 - TimeLapse Error Fix
Version V010 August 21,2021 - Lightning Formatting
Version V009 August 13,2021 - Fix for TimeLapse date sorting
Version V008 August 2,2021 - Fix for AQI Values from Solar AQI
Version V007 August 2,2021 - Fix for Timelapse display
Version V006 August 1,2021 - Added SkyCam Solar support and Timelapses
Version V005 June 9,2021 - Fixed Lightning Typos
Version V004 June 2021 - Finished AfterShock Support. Y Axis labels.
Version V003 April 2021 - Added AfterShock Support. Fixed timestamps

--------------------
config.py contains all the support information
Supports:

  • WeatherSense WeatherRack2
  • WeatherSense Indoor T/H Sensor
  • WeatherSense Lightning Detector
  • WeatherSense Air Quality Index
  • SolarMAX2 Solar Panel System
  • AfterShock Earthquake Detector System
  • WeatherSense SkyCam
  • WeatherSense Radiation Detector

Supporting in the future:

  • WeatherSense Generic

Previous Versions:

Version V002 March 2021 - Added Power calculations <BR Version V001 February 2021

As always, we recommend using the 32GB SDL SDCard with all the software installed.

https://shop.switchdoc.com/products/16gb-sd-card-with-stretch-smart-garden-system-groveweatherpi

Installation:

You need to have the following SDL libraries installed:

cd
git clone https://github.com/switchdoclabs/rtl_433

Follow the install instructions.

And you need to install mariadb:
https://pimylifeup.com/raspberry-pi-mysql/

and

sudo apt-get install python3-dev libmysqlclient-dev
sudo pip3 install mysqlclient

Next:

sudo mysql -u root -p < WeatherSenseWireless.sql

Now to run:

cd
cd SDL_Pi_WeatherSenseWireless
sudo python3 WeatherSenseMonitor.py

and in a different windwow

cd SDL_Pi_WeatherSenseWireless
cd dash_app
sudo python3 index.py 

Then you can access the web pages on your Pi by:

http://localhost:8050/

Or on any computer in your local network:

http://:8050/

Use "hostname -I" to your your Raspberry Pi IP Number.

Example: http://192.168.1.32:8050/

About

Python3 Monitor and store all WeatherSense instruments in database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published