Documentation ¶
Overview ¶
Package owm provides commands to do current weather lookups.
Index ¶
Constants ¶
View Source
const ( TextLanguage = "nl" TextUnits = "metric" TextCurrentWeatherName = "weer" TextLocation = "lokatie" TextNoWeather = "%s, het weerbericht is momenteel niet beschikbaar." TextNotFound404 = "" /* 222-byte string literal not displayed */ TextCurrentWeatherDisplay = "%s, in %s is het %s, %s%s, luchtdruk %.0f hPa, luchtvochtigheid %.0f%%, " + "wind %.1f m/s (kracht %.0f) uit richting %s%s" TextTempExact = "%.0f°C" TextTempRange = "tussen %.0f°C en %.0f°C" TextRainFall = ", regen %.1f mm/uur" TextSnowFall = ", sneeuw %.1f mm/uur" TextTimeZone = "Europe/Amsterdam" TextTimeFormat = "15:04" TextSunRiseSet = ", zon op %s onder %s GMT+2" )
Language specific constants for this package
View Source
const CacheTimeout = time.Minute * 5
CacheTimeout defines the time after which a cache entry is considered stale and it must be re-fetched.
View Source
const LookupTimeout = time.Second * 5
LookupTimeout defines the timeout after which a service request is considered failed.
View Source
const MaxFetchFrequency = 60
MaxFetchFrequency defines the maximum number of GET requests per minute to the weather server
Variables ¶
View Source
var (
TextWindDirection = [16]string{"N", "NNO", "NO", "ONO", "O", "OZO", "ZO", "ZZO", "Z", "ZZW", "ZW", "WZW", "W", "WNW", "NW", "NNW"}
)
Language specific variables for this package
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.