weather(1)
π weather(1) β the manual, but make it slay π
General Commands Manual β¨ weather
okay bestie, gather round, because this is the command-line weather tool and it is lowkey iconic. π¦οΈπ
π NAME π
weather β command-line tool to obtain weather conditions and forecasts βοΈπ§οΈ
β¨ SYNOPSIS β¨
weather [ options ] [ alias1 | search1 [ alias2 | search2 [...]]]
π¦ DESCRIPTION π¦
So this command-line utility is here to give you quick access to current weather conditions and forecasts. Right now it can pull data for localities all over the USA plus some select locations globally, by retrieving and formatting decoded METARs (Meteorological Aerodrome Reports) from NOAA (the USA National Oceanic and Atmospheric Administration) and forecasts/alerts from NWS (the USA National Weather Service). π°οΈ
The tool is written to function in the same spirit as other command-line informational utilities like cal(1), calendar(1) and dict(1). It grabs arbitrary weather data via precompiled correlations or custom-tailored aliases (system-wide or per-user). fr fr. π«Ά
Behavior can be determined by command-line options and specification of zero or more location aliases and search terms.
Aliases are defined in weatherrc(5) files, as a convenient means of grouping URIs together using a short name. Specifying multiple aliases or location search terms on the command line causes the utility to output data for each, as if it had been invoked multiple times. And if none are specified? Then an alias of default is checked for a defargs option, and any alias names listed within it (comma-separated) are applied instead. π«
Searches utilize location correlation sets in INI-style text files named airports, places, stations, zctas and zones. A precomputed copy is distributed with the source, but it can be rebuilt from updated data sources as needed by placing them in the current working directory and running with the --build-sets option (see the comments at the top of any location correlation set file for instructions on where to find updated data sources). Positive search results are cached and sourced as aliases on subsequent runs for as long as the correlation sets remain unchanged, and are cleared automatically once the correlation sets are updated. π
Retrieved data is also cached automatically for a short period of time, adjustable with the cacheage configuration option or the --cacheage command-line option. This helps throttle load against NOAA/NWS servers in case the utility is repeatedly re-run requesting the same data, but can be overridden with the cache_data configuration option or the --no-cache-data command-line option. Be nice to the servers bestie, they're doing their best. π
π OPTIONS π
A summary of options is included below. (Yes, all of them. We do not skip. π )
--versionβ show program's version number and exit-h,--helpβ show a help message and exit-a,--alertβ include local alert notices π¨--atypes=ATYPESβ list of alert notification types to display (ex:tornado,urgent_weather_message)--build-setsβ (re)build location correlation sets--cacheage=CACHEAGEβ duration in seconds to refresh cached data (ex:900)--cachedir=CACHEDIRβ directory for storing cached searches and data (ex:~/.weather)-f,--forecastβ include a local forecast π€οΈ--headers=HEADERSβ list of conditions headers to display (ex:temperature,wind)--imperialβ filter/convert conditions for US/UK units--infoβ output detailed information for your search-l,--listβ list all configured aliases and cached searches--longlistβ display details of all configured aliases-m,--metricβ filter/convert conditions for metric units-n,--no-conditionsβ disable output of current conditions--no-cacheβ disable all caching (searches and data)--no-cache-dataβ disable retrieved data caching--no-cache-searchβ disable search result caching-q,--quietβ skip preambles and don't indent--setpath=SETPATHβ directory search path for correlation sets (ex:.:~/.weather)-v,--verboseβ show full decoded feeds
πΈ EXAMPLES πΈ
weather
View output for the default alias, if one has been defined (otherwise display usage/syntax similar to --help).
weather rdu
Display weather conditions at the airport with IATA/FAA code RDU.
weather --info raleigh
Show a list of FIPS codes for United States Census Bureau places containing the word raleigh (or the proximity information if only one match was found).
weather "^ral[ie]{2}gh city.*nc$"
Get the current weather conditions from the nearest station to the Census place name matching the regular expression provided.
weather -fv fips3755000
Get the full decoded METAR from the nearest station, and the forecast data for the nearest zone to the Census place with FIPS code 3755000 with no special filtering or formatting.
weather --forecast --no-cache-data 27613
Ignore any recent cached METAR or forecast data and display fresh output for the nearest station and zone to the Census ZCTA (essentially USPS ZIP code) 27613.
weather home work
Show current conditions for both the home and work aliases in that order.
weather 35.878573,-78.727813
weather 35-52-43n,78-43-40w
weather "35-52n, 78-43w"
Display weather conditions for the nearest station to an arbitrary set of global coordinates in latitude,longitude order, either in decimal format or degree, degree-minute or degree-minute-second formats, optionally using signed or cardinal hemisphere designations with or without spacing. π
Heads up bestie: the cut-off for maximum acceptable distance is hard-coded at0.1radians (roughly637kmor396mi). No cap, that's just how it is. π
π INPUT FILES π
weather may additionally obtain configuration data from a system-wide configuration file, a per-user configuration file, and a local directory configuration file. The file format and configuration options are described in weatherrc(5). They are aggregated in the following order:
/etc/weatherrcor/etc/weather/weatherrcβ the system-wide configuration~/.weather/weatherrcor~/.weatherrcβ the per-user configuration./weatherrcβ the local directory configuration
π AUTHOR π
Utility and manual written by Jeremy Stanley <fungi@yuggoth.org>. π«‘
β SEE ALSO β
and that's the whole vibe check, bestie β go check your weather π
version 2.5.0 π dated 2024-05-11 π β yeah that's the footer, we're folding it in cutely, mwah π
β¨
π¦ where this page comes from
- debian trixie: weather-util 2.5.0-1 Β· ISC
- nixos 26.05: weather 2.5.0
- nixpkgs unstable: weather 2.5.0
- ubuntu questing: weather-util 2.5.0-1
- ubuntu resolute: weather-util 2.5.0-1build1 Β· ISC
- ubuntu stonking: weather-util 2.5.0-1build1 Β· ISC
- Copyright (c) 2006-2024 Jeremy Stanley <fungi@yuggoth.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms