dschanoeh / go-owm

A go library for the OpenWeatherMap One Call API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-owm

Travis (master)

go-owm is a library for the OpenWeatherMap "One Call API", providing current weather as well as hourly and daily forecasts. See the OWM API documentation for a description of the provided elements.

Usage

import (
    "fmt"
    "github.com/dschanoeh/go-owm"
    )

func main() {
    w, err := owm.GetWeather(52.41467, 10.74063, "OWM_API_KEY")

    fmt.printf("The current temperature is: %f", w.Current.Temperature)
}

About

A go library for the OpenWeatherMap One Call API

License:Apache License 2.0


Languages

Language:Go 100.0%