Giter Site home page Giter Site logo

catsby / go-wunderground Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 1.98 MB

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: MIT License

Go 100.00%

go-wunderground's Introduction

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

go-wunderground's People

Contributors

catsby avatar

Stargazers

Justin Campbell avatar

Watchers

 avatar Justin Campbell avatar

Forkers

logank

go-wunderground's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.