Skip to content

risoflora/wethr

Repository files navigation

wethr

CI/CD Crates.io MIT license

Command line weather tool.

Wethr tool

Usage

Usage: wethr [options] [city name[,state code][,country code]]

Options:
    -m, --metric        Weather in metric units (compatibility)
    -i, --imperial      Weather in imperial units (compatibility)
    -u, --unit [C]elsius or [F]ahrenheit
                        Unit of measurement
    -c, --connect-timeout 5
                        Connect timeout (in seconds)
    -t, --timeout 30    Timeout (in seconds)
    -p, --location-provider 0 to 3
                        Location provider
    -f, --full-info     Full weather information
    -s, --silent        Silent mode
    -v, --version       Print program version
    -h, --help          Print this help menu

Download

Stable binaries for Linux, Windows and Mac OS are available for download at the releases page.

Docker

docker run -it risoflora/wethr

Installation

cargo install wethr

Contributions

Pull Requests and Issues are welcome!

Wish list

  • Binaries
  • Tests
  • Silent mode
  • Full info
  • Query by city name[,state code[,country code]]
  • Location provider
  • Proxy support
  • Configure the OWM API token
  • Template support (e.g. wethr -t '{city} - Temperature: {temperature} - Humidity: {humidity}')
  • Forecast support

Thanks

This project was inspired by twobucks' wethr.

License

This project is licensed under the MIT license.