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.
Click to show internal directories.
Click to hide internal directories.