# Install, commission and maintain

> Mounting and grounding, orienting and calibrating, the validation tools that tell you whether your data is trusted, the MADIS QC flags, and the maintenance that keeps a station honest for years.

Weather stations · How-to guide · https://wxalerts.org/docs/weather-stations/commissioning/

A station that transmits is not the same as a station that is believed. This
page covers the gap: getting it physically right, proving the data, reading the
quality control that comes back, and catching the slow failures that make a
station worse without ever making it stop.

## Physical installation

**Mounting.** A non-penetrating ballast mount, a tripod, or a mast or short
tower. Guy anything over about 3 m. Check local permits, because many jurisdictions
require one above roughly 3 m.

**Grounding.** Bond the mast and coax to a ground rod per **NEC Article 810**,
surge-suppress the data and power lines, and fit a coax gas-discharge arrestor
where the cable enters the building. This is essential rather than optional on
a site whose purpose is reporting thunderstorms.

**Cable routing.** Drip loops, UV-rated cable, and strain relief at every
gland.

## Orientation and calibration

Three things, all of which are permanent sources of error if you get them wrong
and invisible afterwards:

1. **Level the rain gauge** with a bubble level.
2. **Orient the vane to true north**, applying magnetic declination from NOAA
   NCEI's calculator. Declination drifts over years, so note the date you set
   it.
3. **Set the elevation exactly.** A wrong elevation is the classic CWOP
   pressure-offset flag; see
   [pressure reduction](/docs/weather-stations/building-one/#three-pressures-and-only-one-of-them-goes-in-the-packet).

## Commissioning checklist

1. Sanity-check every sensor against a known reference: a handheld
   thermometer, a second barometer, a measured pour into the rain gauge.
2. Compare temperature, dewpoint, pressure and wind against the nearest ASOS or
   mesonet station over a calm period, when they genuinely should agree.
3. Confirm the packet is well formed, locally, with `decode_aprs`.
4. Confirm arrival at `findu.com/cgi-bin/wx.cgi?call=YOURID` within 5 to 15
   minutes.
5. Let it run a week, then read your quality control report properly.

## Validation tools

| Tool | What it tells you |
| --- | --- |
| **aprs.fi** | Map and weather graphs. The quick "alive and plausible" check |
| **findU** | `wx.cgi` raw data, WxGraph, and the packet-checking pages at `wxqa.com/search.htm`: packets on APRS-IS, duplicates, byte counts |
| **CWOP/MADIS QC** | The CWOP Analysis pages at `wxqa.com/aprswxnetqc.html` |
| **Weather Quality Reporter** | weather.gladstonefamily.net, which emails you when your data goes bad, with per-variable bias plots |
| **MesoWest** | Your station as actually ingested from MADIS |
| **MADIS Meso Map** | Confirms registration and the metadata used in QC |

Read these looking for **bias**, not noise. A persistent +2 °F offset is
radiation or siting. A pressure offset is elevation. A 180° wind error is vane
alignment. Dewpoint above temperature is an internal consistency failure and
means a sensor has died.

## Reading the MADIS QC flags

Every observation carries a quality control flag. To be useful to forecasters
your observations need to reach S or V. See
[MADIS QC flags](/docs/weather-stations/madis-qc-flags/) for what each flag
means.

## Troubleshooting

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| No data on findU | Wrong server or port, bad login, or not actually registered | Check the `user … pass -1 …` line; confirm the ID you were emailed; send at least one packet |
| `TCPXX` in your packet | Server rejected the login, usually a bad passcode | CWOP uses `-1`; hams need their real computed passcode |
| Plotted in the wrong hemisphere | Longitude sign, or `E` sent instead of `W` | Use `W` and a negative longitude |
| Data arrives but is flagged Q or X | Failed a validity or consistency check | Read the QC page and fix the offending variable |
| Pressure offset | Wrong elevation, or sending station pressure as MSLP | Set elevation exactly; reduce to MSLP in the `b` field |
| Wind 180° out | Vane reference reversed | Re-index the vane to true north |
| Rain resets or spikes | Counter reset at midnight, or reed bounce | Debounce; use `r` and `p` correctly |
| Flagged for duplicates | Reporting faster than every 5 minutes | Slow down to the 5-minute interval |

## Maintenance

**Monthly.** Glance at the QC pages or aprs.fi for drift and flatlines. Clear
obvious debris.

**Quarterly.** Clean the rain funnel and screen. Check the tipping bucket swings
freely. Clean the radiation shield, because a dirty shield reads warm. Clean the solar
panel. Check battery voltage under load. Look for spider webs and wasp nests.

**Annually.** Inspect anemometer bearings. Recalibrate or replace the
temperature and humidity sensor if it has drifted: SHT-class parts every one
to two years, DHT-class sooner. Replace desiccant. Re-verify the pressure
offset. Update firmware and software. Re-torque hardware. Check coax,
connectors and grounding.

**After every storm.** Verify all sensors still report, check for physical
damage, and confirm the beacon resumed.

### The failures that creep

Slow degradation is harder to catch than outright failure, because nothing ever
alarms:

- **Anemometer bearing wear** shows up as a months-long decline in your wind
  relative to neighboring stations. Trend it against a nearby station rather
  than looking at it in isolation.
- **A dirty shield** produces a creeping warm bias, visible in the MADIS QC
  plots long before you would notice it any other way.
- **An aging battery** shows as falling float voltage and shorter no-sun
  autonomy.

## Detecting failure

  **Stuck values are more dangerous than missing values.** A flatlined 72.0 °F
  looks perfectly valid to every consumer downstream and will happily mislead
  an alerting system, where a station that has simply gone quiet is obviously
  offline and gets ignored.

Build in four things:

- A **heartbeat or telemetry channel** carrying uptime, battery, signal
  strength and last-sensor-change timestamps.
- A **hardware watchdog** to reboot on a hang.
- **Flatline detection**: alert when any variable has not changed for longer
  than is plausible.
- An **offline alert** if no packet reaches APRS-IS for more than 15 to 30
  minutes, from a cron job polling findU or aprs.fi.

## Data continuity

Log locally, to SQLite, CSV or WeeWX's own database, so an internet outage does
not lose the record. WeeWX and CumulusMX both buffer and can backfill their own
databases.

  **CWOP is real-time only.** Gaps are not backfilled to MADIS, so local
  logging is for your own records and for gap analysis, never for retroactive
  submission. Whatever you missed, MADIS missed permanently.

## Next

[Your station on WxAlerts](/docs/weather-stations/on-wxalerts/) shows where
your observations surface once they are flowing. Metadata changes go through
cwop-support@noaa.gov, as described in
[Getting an ID](/docs/weather-stations/registration/).
