https://github.com/gogopex/wthr
A simple Rust command line utility that displays weather information for a given city.
https://github.com/gogopex/wthr
city cli command-line command-line-tool rust rust-command tool weather weather-forecast wthr
Last synced: 12 days ago
JSON representation
A simple Rust command line utility that displays weather information for a given city.
- Host: GitHub
- URL: https://github.com/gogopex/wthr
- Owner: Gogopex
- License: mit
- Created: 2020-07-16T17:07:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T22:57:37.000Z (almost 6 years ago)
- Last Synced: 2025-02-25T06:15:54.890Z (over 1 year ago)
- Topics: city, cli, command-line, command-line-tool, rust, rust-command, tool, weather, weather-forecast, wthr
- Language: Rust
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Roadmap: ROADMAP.md
Awesome Lists containing this project
README

# wthr
A simple Rust command line utility that displays weather information for a given city.
## Installation
I'm not sure this deserves to be uploaded as a crate or as a package somewhere, so for now you can:
```
git clone https://github.com/Gogopex/wthr.git
cd wthr
# wthr requires cargo/rustc
cargo build --release
```
This will generate a bin file in `target/release/build`
## Usage
If you've just ran `cargo build --release`, replace `wthr` by `./target/release/wthr` in the following examples.
```bash
# use wthr to print the weather of a city
$ wthr "new york"
$ Clear Sky - 😎 -- Current temperature is 29°C. Feels like 33°C!
# you can specify the units with --unit
$ wthr philadelphia -u=imperial
$ Broken Clouds - 🌥 -- Current temperature is 83°F. Feels like 90°F!
```
## Demo

## Help
```bash
âš¡ wthr
wthr 0.4.0
A small CLI utility that retrieves and display the weather for a given city using the OpenWeather API
USAGE:
wthr [FLAGS] [OPTIONS]
FLAGS:
-f, --forecast Outputs a forecast of the weather for the next 5 days for a given city
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-u, --unit Other possible units include , [default: metric] [possible values: Metric,
Imperial, Kelvin]
ARGS:
Feel free to report any issue you find here: https://github.com/Gogopex/wthr/issues
```