A simple library/command line tool for working with Wunderground API.
This is packaged as a library (go-wunderground
) and CLI tool (wunderground
).
The library is fledgling and in flux. It currently supports the following:
- Current conditions (but barely)
- Forecast(a little bit more than the above)
See cmd/wunderground/main.go for some usage.
Install the CLI with standard go get
$ go get github.com/catsby/go-wunderground/cmd/wunderground
You need to register at Wunderground.com/api and get you're own API key.
Once you have that, it's probably easiest to put in your ~/.bashrc
or
~/.zshrc` or whatever you're using...
$ echo "export WUNDERGROUND_API_KEY=youruniqueandawesomekey" >> .zshrc
Now you can use the CLI:
$ wunderground 65203
Getting weather for 65203...
Forcast for Columbia, MO
Thursday
Plentiful sunshine. High 68F. Winds NNE at 5 to 10 mph.
Thursday Night
Clear to partly cloudy. Low 51F. Winds NE at 5 to 10 mph.
Friday
Cloudy skies. High 64F. Winds NNE at 10 to 15 mph.
Friday Night
Cloudy. Low 43F. Winds N at 5 to 10 mph.
Saturday
Abundant sunshine. High 66F. Winds NE at 5 to 10 mph.
Saturday Night
Clear skies. Low around 45F. Winds light and variable.
Sunday
Partly cloudy. High 72F. Winds light and variable.
Sunday Night
A few clouds. Low 57F. Winds SE at 5 to 10 mph.
Awesome (っˆーˆ)っ