I am pleased to announce the source release for Conditions – a suite of fast command-line programs for retrieving weather information from Weather Underground.
https://github.com/sramsay/conditions
Conditions consists of six commands (more on the way):
conditions reports the current weather conditions.
forecast gives the current forecast.
alerts reports any active weather alerts.
slookup allows you to determine the codes for the various weather stations in a particular area.
astronomy reports sunrise, sunset, and lunar phase.
almanac reports average high and low temperatures, as well as record temperatures for the day.
I’ve compiled it on both Linux and OS X without incident. Since this is a source release, you’ll need a working Go compiler. I will release binaries for several platforms soon.
I wrote conditions in part because I am a weather geek and CLI nut, but partly to explore the Go programming language. Go, I’ve discovered, is basically a re-imagined C – all the low-level, high-octane joy with all the irritations removed. I’ll try to write a blog post about that sometime soon.
In the meantime, I hope you enjoy Conditions. Patches and bug reports warmly welcomed on the GitHub site.