Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is used to communcate with a service and fetch current and future information about the weather.
func NewOWMClient ¶
NewOWMClient a new Client, which talks to the OpenWeatherMaps (https://openweathermap.org).
type Description ¶
type Description struct { Text string `bson:"text,omitempty"` // Weather condition within the group Icon string `bson:"icon,omitempty"` // Weather icon id }
Description stores overall information to describe the weather. That include text, images and so on.
type State ¶
type State struct { Timestamp time.Time // Timestamp in unix UTC Description Description // Icon and other text describing the weather state Wind Wind // Wind description Temp float64 // Temperature, Celsius Humidity float64 // Humidity, % Rain float64 // Rain volume for the last hours Cloudiness float64 // Cloudiness, % }
State stores the complete information about the weather at a certain time.
Click to show internal directories.
Click to hide internal directories.