LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

weather

Command-line weather forecasts

TLDR

Current weather for a location
$ weather [city]
copy
Use geolocation / default location
$ weather
copy
JSON output (if supported)
$ weather -j [city]
copy

SYNOPSIS

weather [*options*] [*location*]

DESCRIPTION

weather (also published historically as darksky-weather from genuinetools) prints concise weather conditions and forecasts in the terminal. Location can be a city name or coordinates depending on version and backend API configuration.Many builds require an API key from a weather data provider (originally Dark Sky; forks may use OpenWeatherMap or others). Check weather --help and environment variables documented by your package.

PARAMETERS

*location*

City or query string for the forecast.
-j / --json
Machine-readable output when available.
-h, --help
Options for units, days ahead, and icons.

INSTALL

sudo dnf install expect
copy
sudo pacman -S expect
copy
sudo apk add expect
copy
sudo zypper install expect
copy
brew install expect
copy
nix profile install nixpkgs#expect
copy

CAVEATS

Upstream weather APIs change frequently; keys, quotas, and endpoints may break older binaries. Prefer a maintained package for your distribution. Not related to GNOME Weather GUI.

SEE ALSO

curl(1), ansiweather(1), wttr(1)

RESOURCES

Copied to clipboard
Kai