Skip to content

Stations and Drivers

Scope: how real hardware replaces the simulator — the connection kinds, the main driver families, the hardware archive record, and the permissions and ports that decide whether any of it works. This chapter is documented-only: the build had no station, and nothing in it is quoted as run. It is written from the WeeWX project's hardware documentation and the configuration the lab's own station generated.

The swap, in principle

Replacing the simulator is three edits and a restart:

  1. station_type in [Station] becomes the new hardware's name (say Vantage).
  2. A stanza with that name holds the new driver's options — its driver line, its connection settings.
  3. The old stanza can stay in the file, unused. Nothing reads it once station_type points elsewhere.

Everything downstream — the pipeline, the database, the reports, this guide's other chapters — is untouched, because drivers all promise the engine the same thing: LOOP packets in the standard observation names, and archive records when the hardware keeps them. That promise is the entire design. It is also why the simulator is a faithful lab: it keeps the promise exactly.

How stations connect

Connection Who uses it What WeeWX needs
USB (as a serial device) Davis Vantage with USB logger, Fine Offset and clones the device node (such as /dev/ttyUSB0), and permission to open it
True serial (RS-232) older Davis and professional stations, often via a USB-serial adapter port and baud rate in the driver stanza
Network (IP) Ecowitt gateways, Davis WeatherLink Live, Ambient Weather bridges the device's address on your LAN; the driver polls it or it posts to WeeWX
Radio (SDR) stations whose outdoor units transmit on 433/915 MHz, decoded by an RTL-SDR dongle the weewx-sdr driver driving rtl_433, and an antenna where the signal is
File/API stations that already publish somewhere — a cloud API, a file another program writes a driver that fetches and translates (several are community extensions)

The user the engine runs as must be able to open the device: on Linux that usually means membership of the dialout group for serial and USB-serial devices — the single most common reason a freshly installed real station "does nothing," ahead of every exotic cause. The package install arranges its own user and permissions; a pip install leaves them to you.

The driver families

WeeWX's supported-hardware list runs to dozens of models; they cluster into families that share behaviour:

  • Davis Vantage (weewx.drivers.vantage) — the long-running reference family: Pro2, Vue, and the original Vantage Pro, over serial, USB, or Ethernet loggers. The logger holds its own archive (up to 2,560 records on the common loggers), and WeeWX downloads what it missed while it was off — the gap-filling that makes a WeeWX station survivable to reboot. weectl device talks to this hardware for logger settings and clearing.
  • Fine Offset and clones (weewx.drivers.fousb) — the large family of inexpensive USB stations sold under many badges (several Ambient Weather, Maplin, and Watson models among them). Known, in the project's own documentation, for occasional USB "lockups" that the driver has grown defences against; the troubleshooting chapter of the project's guide treats them as a fact of life.
  • Ecowitt and Ambient network gateways (community drivers, principally weewx-gw1000 and the interceptor driver) — the current mainstream: the gateway hears the outdoor sensors by radio and speaks IP, so the driver is a network client or a small web server the gateway posts to. No cable, no serial permissions; instead, the failure modes are Wi-Fi and addressing.
  • Acurite, La Crosse, Oregon Scientific, Peet Bros, RainWise, Texas Weather and others each have drivers of their own, in the core package or as extensions, with the same shape: a stanza, a connection, options for the model's quirks.
  • Simulator — the family of one this guide ran.

Choosing between them is not a WeeWX decision; the station you own chooses for you. What WeeWX asks in return is that you read your driver's section of the project's hardware list before buying: it states, per model, what works, what partially works, and what the station reports that WeeWX cannot use — the honest document in this field.

The hardware archive, and why record_generation exists

Serious stations do not merely stream readings; their loggers summarise and store archive records internally, on their own interval. When WeeWX starts, a driver that can, offers those stored records, and the engine backfills the database from them — which is why a WeeWX station can be off for a weekend and lose nothing but the graphs' punctuality.

That is what [StdArchive]'s record_generation = hardware prefers: the station's own summaries, falling back to software summaries of the LOOP stream. Set it to software when you would rather trust WeeWX's arithmetic (or when the hardware's interval and WeeWX's disagree). The simulator has no logger, so in the lab every record was software-made; on real hardware the choice is a genuine one, and the project's advice — leave it on hardware unless you have a reason — is sound.

What changes on day one with real hardware

  • The weather stops being smooth. Real wind gusts inside a single interval; real rain arrives in tips of a tipping bucket, each worth a fixed amount (a common figure is 0.01 inch or 0.2 mm per tip); the archive's averages hide a liveliness the simulator never showed.
  • New observations appear, and some vanish. Your station's actual sensor set decides which of the archive's 115 columns ever hold values (chapter 6). Battery warnings stop being fiction.
  • Time matters. The engine compares its clock with the station's at startup (this build's log: "Clock error is −0.23 seconds"); a station clock wandering by minutes will smear records across intervals, and StdTimeSynch exists to keep the two honest with each other.
  • Gaps become information. A flat line in a real station's graph is a dead battery or a fallen mast until proven otherwise. The database remembers the silence too, as missing records — which chapter 10's backup habits exist to protect, because unlike the simulator's weather, yours cannot be regenerated.