> ## Content Index
> Fetch the complete content index at: https://blog.thebrainyhome.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# WeatherDataLogger: one pipeline for all my weather stations
- URL: https://blog.thebrainyhome.com/weatherdatalogger/
- Published: 2026-11-22T07:00:43.000Z
- Updated: 2026-11-22T07:00:43.000Z
- Description: An open-source pipeline that collects data from Tempest, Davis and air quality sensors, stores it locally and feeds Home Assistant, Homey and my own weather website.
- Author: Bjarne Riis
- Tags: Projects, Home Assistant, Weather, ESPHome

I've been building weather integrations for Home Assistant for years. Every time, I hit the same wall: each weather station brand has its own protocol and its own quirks, and every consumer (Home Assistant, Homey, a dashboard, a database) needs its own integration for each of them. **WeatherDataLogger** is my attempt to fix that once and for all.

The idea is simple: collect data from *any* supported station, normalize it into one common format, store it locally, and let everything else read from that single source. The hardware is completely decoupled from the things that use the data.

## The big picture

WeatherDataLogger is a small pipeline of services. They run on a Debian host (in my case a Proxmox LXC):

- **Station loggers** talk to the hardware and publish readings to MQTT under one shared topic namespace (`weatherdatalogger/…`).
- **A database writer** subscribes to MQTT and stores everything in MariaDB: real-time values, history, and pre-aggregated data for charts.
- **A REST + WebSocket API** gives read-only access to the data for dashboards and apps.
- **Consumers** (Home Assistant, Homey and my own weather website) read from the database or the API, never from the stations directly.

```
Stations ──► MQTT ──► DB writer ──► MariaDB ──► Home Assistant
                                       │
                                       └──► REST/WebSocket API ──► Homey, web frontend
```

Running more than one station at a time is fine. Every reading lands in the same schema, and a `station_roles` table decides which physical station supplies each measurement. So I can take temperature from one station, wind from another and air quality from a third, and every consumer just sees one "virtual" station.

## Supported hardware

You only enable the stations you actually own:

- **WeatherFlow Tempest**: listens for the hub's UDP broadcasts on the local network. No cloud involved.
- **Davis Vantage Vue**: a custom ESPHome receiver (M5Stack Core + CC1101 radio module) that decodes the station's 868 MHz signal directly. It also has a BME280 for barometric pressure and indoor climate, and it computes sea-level pressure, pressure trend, wet bulb and air density on the device.
- **Davis AirLink**: air quality (PM1, PM2.5, PM10, AQI) via local HTTP polling.
- **Custom Air Quality Monitor**: my own ESPHome build (ESP32-C6 + SDS011 + BME280). It publishes in the same format as the AirLink, so the two are interchangeable.
- **Meteobridge**: full observation via HTTP polling (optional).

For forecasts, you can use **Visual Crossing** (free tier with an API key) and/or **Open-Meteo** (free, no API key, with a choice of weather model such as DMI HARMONIE, ECMWF or ICON). Both can run side by side.

## Easy to install

Installation is a single command on a fresh Debian host:

```
curl -fsSL https://raw.githubusercontent.com/briis/WeatherDatalogger/main/weatherdatalogger/scripts/install.sh -o install.sh
sudo bash install.sh
```

The script installs MariaDB and all the services, creates the database with a generated password, and walks you through a short wizard: where your MQTT broker is, which stations you have, and whether you want forecasts. It only enables the services you need. Updating later is just `deploy.sh`, which pulls the latest code, applies database migrations and restarts what's changed. Your configuration is never touched.

## Home Assistant: WeatherDataLogger-HA

[WeatherDataLogger-HA](https://github.com/briis/WeatherDatalogger-HA?ref=blog.thebrainyhome.com) is a custom integration, installable through HACS. It reads the WeatherDataLogger database directly with a **read-only** user and creates two devices:

- **WeatherDataLogger Forecast**: a `weather` entity with hourly and daily forecasts, plus sensors for today's condition, high/low and precipitation. Current conditions come from your own station instead of the forecast provider, so the "now" value is what's actually measured in your garden.
- **WeatherDataLogger Station**: 39 sensors covering temperature, humidity, dew point, feels-like, pressure and pressure trend, wind (including Beaufort), UV, solar radiation, rain, lightning, air quality and more.

The integration polls the database (every 60 seconds by default, configurable from 15 seconds to 5 minutes). That keeps it independent of whichever loggers happen to be running upstream. Home Assistant handles the long-term history itself, so the integration doesn't duplicate it.

## Homey

There's also a [Homey app](https://github.com/briis/weatherdatalogger-homey?ref=blog.thebrainyhome.com). It connects to the WeatherDataLogger API over a persistent WebSocket, so Homey gets a push the moment a new observation lands. No cloud and no polling. Pairing creates a single weather station device with temperature, humidity, pressure, wind, rain, UV, light, PM2.5 and battery status. Those can be used directly in Homey flows.

## My own weather website

The newest part of the project is a Danish weather website in the style of Apple Weather. It's built on my own station's data and is public at [vejr.briis.com](https://vejr.briis.com/?ref=blog.thebrainyhome.com). It has no location picker. It shows exactly one place: my station.

![Front page of the WeatherDataLogger weather website showing current temperature, air quality, hourly forecast, wind and 10-day forecast](https://raw.githubusercontent.com/briis/WeatherDatalogger/main/docs/images/blog/wdl-web-overview.jpg)

The front page: live values from the station at the top, widgets below.

The front end is a static Svelte 5 + TypeScript build, served by Caddy from its own LXC. Caddy also proxies the API calls and adds the API key on the server side, so the key never reaches the browser. Live values arrive over WebSocket, with REST as a fallback.

The page consists of widgets:

- **Hourly forecast** with temperature, precipitation and wind tabs, plus sunrise/sunset markers
- **10-day forecast** with temperature range bars
- **Wind** with a compass, **Feels like**, **Humidity**, **Pressure** with a gauge, **UV index**, **Solar radiation** and **Lightning**, all from the station
- **Air quality** (CAQI) from the AirLink or my own air quality monitor
- **Sun** and **Moon**, calculated locally, including moon phase
- **Averages**, which compares today with the 1991–2020 climate normal
- **Precipitation radar** from DMI

Behind the scenes there's an animated sky (clouds, rain, snow, stars, lightning, fog, sunrise and sunset) that follows the actual weather. The site is fully responsive and can be installed as a PWA on your phone.

![The weather website on a mobile phone](https://raw.githubusercontent.com/briis/WeatherDatalogger/main/docs/images/blog/wdl-web-mobile.jpg)

The same page on a phone.

### Measured, then forecast

Tap any widget to open a detail popup. This is where combining your own station with a forecast really pays off. The graph shows what the station has *measured* so far today, followed seamlessly by the *forecast* for the rest of the day. You can pick another day or another measurement, and each popup has a short summary and an explanation of the value.

![Temperature popup showing measured values up to now followed by the forecast](https://raw.githubusercontent.com/briis/WeatherDatalogger/main/docs/images/blog/wdl-web-forecast.jpg)

Temperature: measured by the station up to "Nu" (now), forecast from Open-Meteo after that.

![Wind popup with wind speed, gusts and direction arrows over the day](https://raw.githubusercontent.com/briis/WeatherDatalogger/main/docs/images/blog/wdl-web-wind.jpg)

Wind: average speed, gusts (dotted) and direction arrows across the day.

![Sun popup with the sun's path, daylight length and sunrise and sunset times](https://raw.githubusercontent.com/briis/WeatherDatalogger/main/docs/images/blog/wdl-web-sun.jpg)

Sun: the sun's path over the day, daylight length and twilight times.

### Radar with a short-term nowcast

The radar widget is the part I'm most pleased with. DMI publishes its radar composite as open data, but in HDF5 format, which a browser can't display. A small Python worker runs every 5 minutes in the web container. It fetches the newest radar files, colorizes them and reprojects them into map images that sit on top of an OpenFreeMap vector map.

On top of that, it does a simple **nowcast**. It compares the two newest radar frames to work out how the rain is moving, and from that it estimates when rain will reach the station (up to two hours ahead). It also produces six forecast frames for the next hour. The widget can then say things like "Rain expected in about 25 min." The radar popup plays the last two hours followed by the next hour's projection. It's a pure extrapolation, so showers that form or die out aren't included, but it's surprisingly useful in practice.

## What's next

WeatherDataLogger is still under active development. The core pipeline, the Home Assistant integration and the website are all running in my own home every day. There's more on the way, and I'll write about the individual parts in more detail: the ESPHome Davis receiver, the air quality monitor and the radar processing.

Everything is open source. If you have a Tempest, a Davis station or just want a local weather setup you fully control, take a look:

- [WeatherDatalogger](https://github.com/briis/WeatherDatalogger?ref=blog.thebrainyhome.com): the pipeline, the ESPHome firmware and the web frontend
- [WeatherDataLogger-HA](https://github.com/briis/WeatherDatalogger-HA?ref=blog.thebrainyhome.com): the Home Assistant integration (HACS)
- [WeatherDataLogger for Homey](https://github.com/briis/weatherdatalogger-homey?ref=blog.thebrainyhome.com): the Homey app

Questions, ideas or bug reports are very welcome on GitHub.

– Bjarne