wwo-go

module
v0.0.0-...-c8d9bfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2017 License: MIT

README

worldweatheronline

This is a Go library for the worldweatheronline.com APIs.

Installing

go get github.com/worldweatheronline/wwo-go/wwo

Usage

For more details see the example application in example/main.go and documentation.

var weather = WWO({"your-hex-api-key-goes-in-here!"})
forecast, err := weather.GetLocal("London", map[string]string{})
if err == nil {
	fmt.Print("Current Temperature: ", forecast.Current.Temp, "°C\n")
}
Example Output
$ ./example (key) London
Current Conditions: at 14:45
Temperature	20°C
Feels Like	20°C
Humidity	60%
Pressure	1022mbar
Visibility	10km
Wind Speed	15km/h
Wind Direction	90°E of N (E)

Directories

Path Synopsis
wwo provides an interface to the premium api of worldweatheronline.com This requires an API key, held by a WWO structure, which is then used to perform queries.
wwo provides an interface to the premium api of worldweatheronline.com This requires an API key, held by a WWO structure, which is then used to perform queries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL