Expand description

Utility to retreive and format weather data from openweathermap.org

Please specify one of zipcode(country_code), city_name, or lat and lon.

USAGE:
weather-util-rust [OPTIONS]

FLAGS:
-h, --help       Prints help information
-V, --version    Prints version information

OPTIONS:
-k, --api-key <api-key>              Api key (optional but either this or API_KEY environemnt variable must exist)
    --city-name <city-name>          City Name (optional)
-c, --country-code <country-code>    Country Code (optional), if not specified `us` will be assumed
    --lat <lat>                      Latitude (must also specify Longitude)
    --lon <lon>                      Longitude (must also specify Latitude)
-z, --zipcode <zipcode>              Zipcode (optional)

Re-exports

pub use error::Error;

Modules

Configuration data

Direction in degrees

Distance in meters

WeatherUtil Error

Relative Humidity in percent

Latitude

Longitude

Precipitation (rain/snow) in mm

Pressure module: conversions between hPa, kPa, Pa

Speed as meters per second

Temperature module: conversions between Kelvin, Ceclius and Fahrenheit

Serialize/Deserialize Unix Timetstamp to/from DateTime

Timezone offset as seconds before / after UTC

Reqwest Client

Representation of Weather Data from openweathermap.org

Representation of Weather Forecast from openweathermap.org

CLI App Options and implementation

Macros

Functions

Type Definitions