A go package for interacting with the Wunderground weather API.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
wunderground
.gitignore
.travis.yml
LICENSE
README.md

README.md

go-wunderground

A go package for interacting with the Wunderground weather API.

GoDoc Build Status Coverage Status Go Report Card

Table of Contents

Installation

go get "github.com/ZachtimusPrime/go-wunderground/wunderground"

Usage

Construct a new Wunderground client to pull weather data for a specific city.

For example:

package main

import (
        "github.com/ZachtimusPrime/go-wunderground/wunderground"
)

func main() {

		// Create new Wunderground client
		client := wunderground.NewClient(nil, "TN", "Nashville", {your-API-key})

		// Get current weather data
        weather, err := client.GetWeather()
        if err != nil {
            log.Print(err)
        }
}