#weather

bin+lib weather_util_rust

CLI tool to pull weather data from openweathermap.org, intended to replace the debian package weather-util

82 releases

new 0.16.5 Apr 1, 2023
0.16.0 Mar 31, 2023
0.15.0 Dec 9, 2022
0.14.13 Nov 27, 2022
0.2.3 Mar 29, 2020

#539 in Command line utilities

Download history 29/week @ 2022-12-08 77/week @ 2022-12-15 4/week @ 2022-12-22 9/week @ 2022-12-29 7/week @ 2023-01-05 12/week @ 2023-01-12 28/week @ 2023-01-19 16/week @ 2023-01-26 8/week @ 2023-02-02 198/week @ 2023-02-09 186/week @ 2023-02-16 3/week @ 2023-02-23 8/week @ 2023-03-02 147/week @ 2023-03-09 10/week @ 2023-03-16 44/week @ 2023-03-23

209 downloads per month

Custom license

85KB
2K SLoC

weather_util_rust

version Build Status Documentation codecov

CLI tool to pull weather data from openweathermap.org, intended to replace the debian package weather-util.

You will need to obtain an api key by signing up at openweathermap.org.

Usage:

weather_util_rust
Utility to retrieve and format weather data from openweathermap.org

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 environment variable must exist)
        --city-name <city-name>          City Name
    -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)

Output:

Current conditions Astoria US 40.76N -73.93E
Last Updated 2020-01-19 15:18:52 -05:00
        Temperature: 39.45 F (4.14 C)
        Relative Humidity: 48%
        Wind: 300 degrees at 14.99 mph
        Conditions: broken clouds
        Sunrise: 2020-01-19 07:15:59 -05:00
        Sunset: 2020-01-19 16:56:14 -05:00

Forecast:
        2020-01-19 High: 35.76 F / 2.09 C         Low: 26.06 F / -3.30 C
        2020-01-20 High: 29.21 F / -1.55 C        Low: 19.58 F / -6.90 C
        2020-01-21 High: 31.21 F / -0.44 C        Low: 20.79 F / -6.23 C
        2020-01-22 High: 34.68 F / 1.49 C         Low: 24.96 F / -3.91 C
        2020-01-23 High: 38.43 F / 3.57 C         Low: 30.25 F / -0.97 C
        2020-01-24 High: 42.04 F / 5.58 C         Low: 31.55 F / -0.25 C

Dependencies

~4–13MB
~267K SLoC