CLI to extract meteorology data from Open Meteo. https://crates.io/crates/open-meteo-cli
Go to file
2023-05-20 00:35:47 +02:00
src Better texts, adding info to Cargo.toml and adding README.me 2023-05-20 00:35:47 +02:00
.gitignore First commit, CLI to request the current weather from Open Meteo 2023-05-19 00:03:14 +02:00
Cargo.lock First commit, CLI to request the current weather from Open Meteo 2023-05-19 00:03:14 +02:00
Cargo.toml Better texts, adding info to Cargo.toml and adding README.me 2023-05-20 00:35:47 +02:00
README.md Better texts, adding info to Cargo.toml and adding README.me 2023-05-20 00:35:47 +02:00

Open Meteo CLI

CLI to extract meteorology data from Open Meteo.

Usage

The Open Meteo CLI allows you to retrieve weather data for specific coordinates.

Current Weather

Get the current weather for a given coordinate.

open-meteo current-weather [OPTIONS] --latitude <LATITUDE> --longitude <LONGITUDE>

Options

  • -l, --latitude <LATITUDE>: Latitude as a decimal number.
  • -L, --longitude <LONGITUDE>: Longitude as a decimal number.
  • -a, --all: Prints all available parameters.
  • -d, --is-day: Prints if it is day or night.
  • -t, --temperature: Prints the decimal temperature.
  • -w, --windspeed: Prints the decimal wind speed.
  • -W, --winddirection: Prints the wind direction angle.
  • -c, --clean: Cleans the output and only shows the values separated by commas. The order of values is as follows: is_day, temperature, windspeed, winddirection. Example output: 1,22.4,12.5,170.0.

Attribution

The weather data used in this application is provided by Open-Meteo.com under the CC BY 4.0 license. We would like to express our gratitude to Open-Meteo.com for their contribution to this project.