Skip to main content

Build Database

Build a SQLite database from the station files in your local repository. The resulting file has the same structure as the official stations database, which makes it easy to test your changes locally before submitting them.

Usage​

meteo station build [OPTIONS]

By default, the database is written to stations.db in the root of the stations repository. Existing files are overwritten.

Examples​

meteo station build                         # Build stations.db in the repository root
meteo station build --output ~/stations.db # Custom output path

Options​

OptionShortDescription
--output-oOutput file path (default: stations.db in the repository root)
--skip-validationDon't validate stations before building
--repoPath to the stations repository (overrides stations_repo)
info

Stations which fail validation are skipped and reported unless --skip-validation is set.