Weather-Rs

Simple command line application to fetch weather data from openweathermap.org's api

Installation

Through Cargo

Make sure you have rustup installed & the latest stable Rust version. Then, run the command

shell cargo install weather-rs

to install.

Manual

Download the executable from the latest GitHub release and place it somewhere on your PATH

Building from Source

Ensure you have the latest stable Rust version installed through rustup then git clone the repo & cd into it. Then, run cargo build for a degub build, or cargo build --release for a release build.

Usage

  1. Set an environment variable for your API key. By default it will search for the name WEATHER_API_KEY. Alternatively, you can set the API key using the --set-key <KEY> option when running the program, where <KEY> is your API key.
  2. Run the program & enter the name of the location you want to get the info for