A simple weather CLI application written in Rust.
This application retrieves and displays current weather information for a specified city.
Future plans include integrating a Text User Interface (TUI).
cargo install weather-cli-rsEnsure you have created an API key at https://openweathermap.org/. You will need to provide this key as an argument!
Run in your terminal
$ weather-cli-rs <COMMAND>
| Command | Description |
|---|---|
key |
Ensure you have entered a valid API key before continuing |
set |
Sets up your city |
go |
Executes the app using the stored configuration |
help |
Print this message or the help of the given subcommand(s) |
$ weather-cli-rs key <API_KEY>
$ weather-cli-rs set --name "Kyoto" --country "JP"
Note: The --country (-c) flag is optional. However, you will likely be prompted with several options to select your city
Weather in Kyoto - JP
π’ scattered clouds β
π’ Temperature: 31.81Β°C | feels_like 37.85Β°C
π’ Atmospheric pressure : 1010 hPa
π’ Visibility: 10000 m
π’ Humidity: 64%
π’ Wind speed: 2.24 m/s
π’ Clouds: 39%
Save yourself a few clicks next time
$ weather-cli-rs go
