Skip to content

WeeWX for Mere Mortals

A home weather station measures the weather outside your own walls — temperature, wind, rain, pressure — and then, mostly, forgets it: the console shows the moment, and the moment passes. WeeWX is the part that remembers. It is a free program, written in Python, that sits between a weather station and everything you might want to do with its readings: it takes each reading as it comes, works out the things the station did not measure (dewpoint, wind chill, the day's highs and lows), files the results in a database that grows for years, and — every few minutes, unattended — builds a small website of pages and graphs from them, and can post the readings onward to the public weather services.

It runs on modest hardware. A Raspberry Pi is the classic WeeWX machine, and plenty of stations have logged a decade of weather on hardware that was already old when the station arrived. It speaks to a long list of station hardware through interchangeable drivers, and everything it does is governed by one readable configuration file.

This guide's lab needs no station at all. WeeWX ships with a Simulator driver that invents plausible weather — a slow daily swing of temperature, pressure, wind, and rain — and feeds it to the engine exactly as real hardware would. On the simulator, the whole system is provable end to end: the engine archives records into a real SQLite database (this build watched it happen, one record a minute), the report generator builds the real website (this build served it over HTTP and fetched the pages back), and an extension was installed and a custom calculation taught to the system, both verified in the output. What the simulator cannot prove — serial cables, radio links, the quirks of any particular brand of station — is labelled as needing hardware, here and in criteria.md.

A note on how this guide was verified. WeeWX 5.5.2, installed with pip into a Python 3.12 virtual environment on Ubuntu, ran a station created by its own weectl tool: the fictional Meadowbrook Hollow Test Station, at 39.05° N, 95.68° W, 920 feet. Its archive interval was shortened to 60 seconds so a short run would fill the database visibly; real stations usually run at five minutes. The captures quoted in the chapters — log lines, database rows, the generated pages — are from that run, and weewx-lab/ in this repo keeps the lab's working files. The simulated weather itself is, of course, invented: the numbers are real outputs, but they describe no sky that ever existed.

What this guide covers

  • What WeeWX is — the shape of the system: driver, engine, archive, reports, and the loop that ties them together
  • Installing WeeWX — the package and pip routes, what gets installed where, and the daemon question
  • The Simulator station — creating a station, the first run, LOOP packets and archive records, and reading the log
  • The configuration file — weewx.conf section by section, in the order the engine reads a packet's life
  • Stations and drivers — how real hardware connects, the driver families, and what changes when the simulator is replaced (documented, not run, and labelled so)
  • The archive database — archive records, the 115-column table, the daily summaries that accumulate beside them, and SQLite versus MySQL
  • Skins and reports — the Seasons skin taken apart: templates, generated pages, plots, and the NOAA summaries
  • Uploading and weather services — FTP and rsync as reports, and the public services — Weather Underground, CWOP, PWSweather and the rest — with the account each one asks for first
  • Extending WeeWX — services in the engine's pipeline, an extension installed for real, and a custom calculation added and proven on the page
  • Backup and maintenance — what actually needs backing up, the weectl database tools, and living with a database that only grows
  • The neighbours — CumulusMX, the station makers' own software, Home Assistant, and the hosted services, placed honestly
  • Troubleshooting — the dead engine, the empty page, the colliding report, the logger that would not start — symptom first, then the fix
  • Glossary — the terms, collected in one place

What it doesn't cover

Building a station: choosing sensors, mounting an anemometer, and siting for honest wind and rain readings is a subject of its own, and the numbers in this guide are a simulator's anyway. Lightning detection, air-quality sensors, and the camera-on-the-roof projects each attach to WeeWX through extensions, and are named where they belong rather than taught. Forecasting is somebody else's job entirely — WeeWX records the weather; it does not predict it.

How to use this guide

Read chapter 1, then build the lab in chapters 2 and 3: one pip install, one weectl command, and your machine has a weather station that never gets rained on. Everything after that is the real system read closely — the configuration file, the database, the reports — and when a real station joins the desk, chapter 5 is the swap: one stanza in the configuration, and the weather stops being invented.