Edit Station

On this page

Edit an existing weather station in your local repository.

Usage#

Bash
meteo station edit ID [OPTIONS]

Without options, the station's JSON file is opened in your default editor ($VISUAL or $EDITOR). Once you save and close the file, the station is validated. If validation fails, you can re-open the editor or discard your changes.

To change individual properties without an editor, use --set and --unset with dot notation.

Examples#

Bash
meteo station edit 10637                                  # Open in editor
meteo station edit 10637 --set name.en="Frankfurt Airport" # Update a single property
meteo station edit 10637 --set identifiers.icao=EDDF \
  --set location.elevation=111                            # Update multiple properties
meteo station edit 10637 --unset identifiers.iata         # Remove a property

Options#

Option Short Description
--set -s Set a property using KEY=VALUE with dot notation (repeatable)
--unset -u Remove an optional property (repeatable)
--editor Editor command to use instead of $VISUAL/$EDITOR
--dry-run Print the resulting JSON without writing the file
--repo Path to the stations repository (overrides stations_repo)