weather Weather

This command-line utility is intended to provide quick access to current weather conditions and forecasts. Presently, it is capable of returning data for localities throughout the USA and 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 retrieves arbitrary weather data via precompiled correlations or custom-tailored aliases (system-wide or on a per-user basis). It can be freely used and redistributed under the terms of a BSD-like License.


2.0 Released

See the NEWS file for information about important differences in the 2.0 release. Thanks to everyone who provided suggestions and bug reports. Contact me if you spot anything not working as intended!

Upgrading from 1.x to 2.x DEB Packages or Installing Without Recommends

If you were previously running with a packaged 1.x release, then upraded to a 2.x package and started seeing the following message:

weather error: can't find "stations" data file

...this is a regressive failing of package upgrades when an installed package grows a recommends field. The apt package manager and its friends do not automatically pull in recommended packages on upgrade, even though they do by default at install time. The weather-util package now recommends weather-util-data (they're both built from a single source package--see their package descriptions).

Another likely cause if you're installing fresh is that you have automatic installation of recommended packages disabled (in which case you should be looking at the recommends fields for any packages you're considering installing and deciding for yourself whether to add those as well).

The solution in either of these cases is to install the weather-util-data package and this issue should disappear (or to provide your own conformant location data mappings).

I wrestled with possible ways to avoid this for users of the Debian package, but every solution was a compromise in some way (making a large new data package a hard dependency even though it's technically optional for some use cases, adding an obnoxious warning in NEWS.Debian for users of apt-listchanges to see, et cetera). In the end I opted to simply document the situation clearly in the package descriptions.





Crawling Chaos Labs