Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Cond ¶
type Cond struct { // Time is the time, where this weather condition applies. Time time.Time // Code is the general weather condition and must be one the WeatherCode // constants. Code WeatherCode // Desc is a short string describing the condition. It should be just one // sentence. Desc string // TempC is the temperature in degrees celsius. TempC *float32 // FeelsLikeC is the felt temperature (with windchill effect e.g.) in // degrees celsius. FeelsLikeC *float32 // ChanceOfRainPercent is the probability of rain or snow. It must be in the // range [0, 100]. ChanceOfRainPercent *int // PrecipM is the precipitation amount in meters(!) per hour. Must be >= 0. PrecipM *float32 // VisibleDistM is the visibility range in meters(!). It must be >= 0. VisibleDistM *float32 // WindspeedKmph is the average wind speed in kilometers per hour. The value // must be >= 0. WindspeedKmph *float32 // WindGustKmph is the maximum temporary wind speed in kilometers per // second. It should be > WindspeedKmph. WindGustKmph *float32 // WinddirDegree is the direction the wind is blowing from on a clock // oriented circle with 360 degrees. 0 means the wind is blowing from north, // 90 means the wind is blowing from east, 180 means the wind is blowing // from south and 270 means the wind is blowing from west. The value must be // in the range [0, 359]. WinddirDegree *int // Humidity is the *relative* humidity and must be in [0, 100]. Humidity *int }
type Frontend ¶
type Frontend interface { Setup() Render(weather Data, unitSystem UnitSystem) }
type UnitSystem ¶
type UnitSystem int
const ( UnitsMetric UnitSystem = iota UnitsImperial UnitsSi UnitsMetricMs )
type WeatherCode ¶
type WeatherCode int
const ( CodeUnknown WeatherCode = iota CodeCloudy CodeFog CodeHeavyRain CodeHeavyShowers CodeHeavySnow CodeHeavySnowShowers CodeLightRain CodeLightShowers CodeLightSleet CodeLightSleetShowers CodeLightSnow CodeLightSnowShowers CodePartlyCloudy CodeSunny CodeThunderyHeavyRain CodeThunderyShowers CodeThunderySnowShowers CodeVeryCloudy )
Click to show internal directories.
Click to hide internal directories.