What WeeWX Is
Scope: the mental model — a program that listens to a weather station, remembers everything, and publishes it — the four parts every reading passes through, and the lab this guide is verified on.
The remembering part of a weather station
A consumer weather station is two things: a set of outdoor sensors (temperature, humidity, wind, rain, pressure, sometimes sunlight and UV), and an indoor console that shows the current readings. The console is a mayfly. It displays the present, holds a day or two of highs and lows, and that is the whole of its memory. Ask it what the coldest night last January was, or how much rain fell the year before last, and it has nothing to tell you.
WeeWX is a program — free, open source, written in Python, maintained since 2009 — that gives a station a memory and a publisher. It connects to the station (by USB, serial cable, or over the network, depending on the model), takes every reading the moment it is made, derives the readings the station did not take, stores a summary of each few minutes in a database, and periodically generates a complete website from the database: current conditions, graphs of the day, week, month, and year, and climatological summaries in the style of the US National Oceanic and Atmospheric Administration (NOAA). Optionally it also posts each reading to public weather services, where your station joins the maps alongside everyone else's.
It is deliberately not grand. WeeWX runs happily on a Raspberry Pi, logs for years into a database file you can copy with one command, and is configured by a single text file you can read top to bottom. Its longevity comes from that modesty.
The four parts
Every reading in WeeWX passes through the same four parts. The rest of this guide is these four, taken slowly.
- The driver, which knows how to talk to
one kind of hardware. It polls the station
or listens to it, and emits the readings as
little dictionaries of named values —
outTemp,windSpeed,rain, and so on — called LOOP packets while they stream in, several a minute. - The engine, which runs a pipeline of services over each packet: converting units, applying small corrections, checking values against sanity limits, and calculating the derived observations (dewpoint from temperature and humidity, wind chill, heat index, and more). Every archive interval — five minutes by default — the engine averages and totals the interval's packets into one archive record and stores it.
- The archive database, one file in the usual setup (SQLite), holding one record per interval, plus a set of daily summary tables the engine maintains beside it: each day's minimum, maximum, and totals per observation, so reports do not have to scan years of records to draw a year's graph.
- The reports, generated after each archive record by the report engine: web pages from templates (the Cheetah template system), graphs drawn as images, plain-text NOAA summaries — and, if you ask, uploads, because in WeeWX sending the finished pages to a web server by FTP or rsync is itself just another report.
Around those four sits the fifth thing, the
one you will actually touch: weewx.conf,
the configuration file that names the
station, chooses the driver, sets the
interval, and enables or disables every
report and service. Chapter 4 reads it end
to end.
A packet's life, in one paragraph
The station reports 41 °F and a north wind. The driver emits a LOOP packet. The engine's services convert, check, and enrich it — now it also carries a dewpoint and a wind chill. Nobody stores it; LOOP packets are the weather thinking out loud. At the end of the archive interval, the engine folds the interval's packets into a single record — mean temperature, strongest gust and its direction, rain totalled — and that record is written to the database and merged into today's summaries. Then the report engine wakes, rebuilds the web pages that changed, and the cycle repeats. A decade later the database holds every interval of it, and the year graph is drawn from summaries that were kept up all along.
The lab, and its honest ceiling
This guide's station does not exist. WeeWX ships a driver called Simulator that generates plausible weather from smooth mathematical curves — temperature and pressure swinging over the day, wind rising and falling, occasional rain — and emits it as LOOP packets every 2.5 seconds, exactly as a real driver would. Everything downstream of the driver is the real system, so everything downstream is verified for real in this guide:
Check: the guide's engine starting up, from
its log (the station directory's weewx.log;
the build's own logging setup is chapter
3's business):
weewxd: INFO weewx.engine: Using archive interval of 60 seconds (specified in weewx configuration)
weewxd: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
weewxd: INFO weewx.manager: Starting backfill of daily summaries
weewxd: INFO weewx.manager: Empty database
weewxd: INFO weewx.engine: Starting main packet loop.
Check: a record landing, one interval later, and the reports it triggered:
weewxd: INFO weewx.manager: Added record 2026-11-05 08:48:00 UTC (1793868600) to database 'weewx.sdb'
weewxd: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.64 seconds
weewxd: INFO weewx.imagegenerator: Generated 18 images for report SeasonsReport in 0.18 seconds
What the simulator cannot do is be a
station. The chapters on real hardware —
USB and serial connections, the Davis,
Ecowitt, Fine Offset, and other driver
families — are written from the project's
documentation and marked documented-only;
criteria.md keeps the full ledger. The
division is the honest shape of this
subject: the software is one system, the
hardware is forty systems, and only one of
them was ever going to fit in a sandbox.