weather

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: BSD-1-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package weather provides commands to do current weather lookups, as well as weather forecasts for specific locations.

Index

Constants

View Source
const (
	TextLanguageISO           = "NL"
	TextCurrentWeatherName    = "weer"
	TextForecastName          = "weerfc"
	TextLocation              = "lokatie"
	TextNoWeather             = "%s, het weerbericht is momenteel niet beschikbaar."
	TextNoResult              = "%s, er is momenteel geen data beschikbaar voor deze lokatie."
	TextLocationsText         = "%s: er zijn meerdere lokaties met deze naam: %s"
	TextCurrentWeatherDisplay = "%s, in %s is het %d°C, %s, luchtdruk: %s hPa, luchtvochtigheid: %s, wind: %.1f km/u uit richting: %s."
	TextForecastDisplay       = "Weersvoorspelling voor %s:"
)
View Source
const CacheTimeout = time.Minute * 10

CacheTimeout defines the time after which a cache entry is considered stale and it must be re-fetched.

View Source
const CurrentWeatherURL = "https://api.wunderground.com/api/%s/conditions/lang:%s/q/%s.json"
View Source
const ForecastURL = "https://api.wunderground.com/api/%s/forecast/lang:%s/q/%s.json"
View Source
const LookupTimeout = time.Second * 5

LookupTimeout defines the timeout after which a service request is considered failed.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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