/weatherlink-data-logger

Python application for logging data from WeatherLink devices via https://weatherlink.github.io/weatherlink-live-local-api/

Primary LanguagePython

WeatherLink Data Logger

DEPRECATED Repository moved to GitLab weatherlink-live-local-logger

Python application to poll a WeatherLink station and push data to a Redis stream. Parses the return packet for the data points listed in Parameters. You may change what is captured by modifying the elements in wlconfig.toml:keys_to_retain—see docs/ for an example WeatherLink Live Local API return packet.

Parameters

Parameter Data Type SQL Data Type Note
bar_sea_level Inch REAL
dew_point °F REAL
humidity %RH REAL
hum_interior %RH REAL
solar_radiation W/m² REAL
temperature °F REAL
temp_interior °F REAL
timestamp Integer INT Global key
uv_index Index REAL
wind_dir_last °degree REAL
wind_speed_last mph REAL

See WeatherLink Live local API

Setup and Execution

  1. Install Poetry
  2. Install Redis
  3. git clone https://github.com/jagrafft/weatherlink-data-logger.git
  4. cd weatherlink-data-logger/
  5. cp config/wlconfig.example.toml config/wlconfig.toml
  6. Edit config/wlconfig.toml as needed
  7. poetry install
  8. poetry run python3 src/weatherlink.py