[][src]Crate weather_util_rust

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)

Modules

config

Configuration data

direction

Direction in degrees

distance

Distance in meters

humidity

Relative Humidity in percent

latitude

Latitude

longitude

Longitude

precipitation

Precipitation (rain/snow) in mm

pressure

Pressure module: conversions between hPa, kPa, Pa

speed

Speed as meters per second

temperature

Temperature module: conversions between Kelvin, Ceclius and Fahrenheit

timestamp

Serialize/Deserialize Unix Timetstamp to/from DateTime

timezone

Timezone offset as seconds before / after UTC

weather_api

Reqwest Client

weather_data

Representation of Weather Data from openweathermap.org

weather_forecast

Representation of Weather Forecast from openweathermap.org

weather_opts

CLI App Options and implementation