Skip to content

The Simulator Station

Scope: creating a station with weectl, the layout of the station directory, the first run of the engine, and what LOOP packets and archive records actually look like when they arrive.

Creating the station

One command builds the whole data area. The guide's station is fictional on purpose — Meadowbrook Hollow exists only here:

$ weectl station create ./station --no-prompt \
    --location="Meadowbrook Hollow Test Station" \
    --altitude="920,foot" --latitude=39.05 --longitude=-95.68 \
    --register=n --units=us

Run interactively, weectl asks those same questions one at a time; --no-prompt takes the flags instead. Two of the choices matter later: --units picks the unit system the station stores in (US customary here; reports can still display in others), and nothing about registration is sent anywhere unless you ask — register_this_station defaults to false, and this station kept it that way.

Check: what the command reported doing:

Creating configuration file .../station/weewx.conf
Copying new skin Seasons into .../station/skins/Seasons
Copying new skin Standard into .../station/skins/Standard
... (Horizon, Rsync, Smartphone, Mobile, Ftp)
Creating a new 'user' directory at .../station/bin/user
Saving configuration file .../station/weewx.conf

Note the driver: the command never asked. A new station is created with station_type = Simulator and the driver weewx.drivers.simulator unless --driver says otherwise — the simulator is WeeWX's factory default precisely so that a first run needs no hardware. Chapter 5 is about changing that one stanza.

The station directory

Path What lives there
weewx.conf the configuration (chapter 4)
skins/ the report skins: Seasons and friends
bin/user/ your code: extensions and custom services go here
archive/ the database — created on first run
public_html/ the generated website — created on first run
examples/ sample services and a sample extension, shipped for copying
util/ service files, web-server snippets, import examples
scripts/ helper scripts, including daemon setup

Shortening the interval (a lab move, labelled)

A fresh station archives every 300 seconds. That is the right interval for real weather and a tedious one for a first afternoon, so the lab changed one line in weewx.conf, under [StdArchive]:

    archive_interval = 60

The engine logs the choice at startup ("Using archive interval of 60 seconds"), and everything below happens five times as fast as it would on a real station. Nothing else about the lab depends on the change; put it back to 300 — or to whatever your hardware's own archive interval is — before the station is real.

The first run

$ cd station
$ ../venv/bin/weewxd weewx.conf

Left in the foreground, weewxd prints each LOOP packet as it passes (the work of the StdPrint service, first in the report pipeline). One packet, trimmed of nothing:

LOOP: 2026-11-05 08:47:03 UTC (1793868423) altimeter: 32.14, appTemp: 28.46,
barometer: 31.10, cloudbase: 2164.3, consBatteryVoltage: 12.0, dateTime: 1793868423,
dewpoint: 27.20, heatindex: 32.68, humidex: 32.68, inHumidity: 30.0, inTemp: 63.0,
maxSolarRad: 0.0, outHumidity: 80.0, outTemp: 32.68, pressure: 31.10, radiation: 443.5,
rain: 0, rainRate: 0.0, supplyVoltage: 11.3, usUnits: 1, UV: 6.2, windchill: 32.68,
windDir: 360.0, windGust: 0.0, windSpeed: 0.0 ...

Read it as the whole system in one line. Some values are the "station's" own: outTemp 32.68 °F, outHumidity 80 %, pressure, a wind speed of zero and a direction of 360° (the simulator's calm start). Some are already calculations, added by the engine's services before the packet reached the printer: dewpoint, windchill, heatindex, altimeter, cloudbase, appTemp. And the bookkeeping rides along: dateTime as a Unix timestamp, usUnits saying which unit system the numbers are in, a flock of battery voltages the simulator invents because real stations report them.

The simulator emits one of these every 2.5 seconds (its loop_interval). Nothing is stored yet. Storage happens on the archive interval:

Check: three minutes in, the database held three records — one per minute, each stamped on the minute, each carrying the interval's summary rather than any single packet:

dateTime (UTC)      interval  outTemp  outHumidity  barometer  windSpeed  windGust  windDir  rain
2026-11-05 08:48:00   1        32.66      80.0        31.100    0.000      0.000    360.0   0.0
2026-11-05 08:49:00   1        32.62      80.0        31.100    0.000      0.000    360.0   0.0
2026-11-05 08:50:00   1        32.57      80.0        31.100    0.000      0.000    360.0   0.0

(The interval column counts minutes, so the lab's 60 seconds is a 1; a default station writes 5.) The temperature drifts down by hundredths — the simulator's morning curve at work. The wind is still zero: the simulator starts calm and builds its weather over hours, which is the first honest lesson of the lab — a young WeeWX station, real or simulated, has thin graphs and unremarkable statistics, and there is no shortcut but time.

Where the log goes (and a warning the build earned)

By default WeeWX logs to the system log. For a lab, a file inside the station is friendlier, and weewx.conf can carry a [Logging] section that redirects the root logger. The shape matters more than you would expect: WeeWX merges your section over its own defaults, the root logger lives directly under [Logging] as [[root]], and a section laid out the way Python's logging documentation suggests will simply fail. This build's first two attempts did, and the engine said so and stopped:

Unable to set up logger: Unable to configure handler 'file'

The working version — a file handler defined under [[handlers]], the root logger pointed at it — is the one quoted throughout this guide, and troubleshooting (chapter 12) keeps the story. Change logging with the engine stopped, and read the first lines after every change: WeeWX tells you plainly when the logger will not start, but only in the output you were not watching.