weather
is a CLI for displaying the current weather conditions in your terminal,
with support for ANSI colors and Unicode symbols.
weather
data comes from the OpenWeatherMap
free weather API.
weather
requires the following dependencies:
- cURL
- Cargo
- Nerd Fonts
- JoyPixels (or any other emoji source)
The following is step-by-step instruction.
$ git clone https://github.com/dimartz/weather.git
$ cargo install --path weather/
Move the binary file ~/.cargo/bin/weather
to the path of your choice.
If the binary remains on the original path:
$ cargo uninstall weather
weather [-l location] [-I imperial system] [-F extended forecast]
[-h humidity] [-w wind] [-d daylight] [- only weather]
[-H help] [-V version]
-l="[LOCATION]"
(use quotes) Specify location.
Default: auto localization.
-I
Toggle unit system to Imperial.
Default: Metric.
-F
Toggle extended forecast mode.
-h
Show humidity data display.
-w
Show wind data display.
-d
Show daylight data display.
-
(dash symbol) Show only weather display.
-H, --help
Display usage information.
-V, --version
Display version
Display weather
using imperial units for Gold Coast, Australia:
weather -l="Gold Coast,AU" -I
Location format is city,CC
where CC
is a two-letter ISO 3166-1 alpha-2 country code.
A list of country codes is available here.
Example: "Copenhagen,DK"
In case no location is specified, weather
will auto-detect your location with ip-api.
Both metric
and imperial
systems are supported.
metric
is the default unit. To switch to imperial
:
weather -I -
Show upcoming forecast for the next days.
weather -F
weather
uses the format provided by date
according to your system settings.
weather
is released under the BSD 2-Clause license. See LICENSE
file for details.