Skip to content

Command line tool in Go that shows me the weather for my area, or by zip code. Doesn't exist yet, but Weather Underground wants a website for registration and I don't want to be a liar.

License

Notifications You must be signed in to change notification settings

catsby/go-wunderground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-wunderground

A simple library/command line tool for working with Wunderground API.

Usage

This is packaged as a library (go-wunderground) and CLI tool (wunderground).

Using the Library

The library is fledgling and in flux. It currently supports the following:

See cmd/wunderground/main.go for some usage.

Using the CLI

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 (っˆーˆ)っ

About

Command line tool in Go that shows me the weather for my area, or by zip code. Doesn't exist yet, but Weather Underground wants a website for registration and I don't want to be a liar.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages