package
Version:
v7.6.2+incompatible
Opens a new window with list of versions in this module.
Published: Apr 27, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New creates an instance of owmbeat.
type Clouds struct {
Today int `json:"today"`
}
type Coordination struct {
Lat float32 `json:"Lat"`
Lon float32 `json:"Lon"`
}
type Main struct {
Temp float32 `json:"temp"`
Temp_min float32 `json:"temp_min"`
Temp_max float32 `json:"temp_max"`
Pressure float32 `json:"pressure"`
Humidity int `json:"humidity"`
Sea_level float32 `json:"sea_level"`
Grnd_level float32 `json:"grnd_level"`
}
type Measure struct {
CityId int `json:"id"`
Timestamp int `json:"dt"`
Name string `json:"name"`
Coord Coordination `json:"coord"`
Main Main `json:"main"`
Wind Wind `json:"wind"`
Rain Rain `json:"rain"`
Snow Snow `json:"snow"`
Clouds Clouds `json:"clouds"`
Weather []Weather `json:"weather"`
}
type OwmResponseData struct {
Cod int `json:"cod"`
Calctime float32 `json:"calctime"`
Cnt int `json:"cnt"`
Measurements []Measure `json:"list"`
}
type Rain struct {
OneHour float32 `json:"1h"`
ThreeHours float32 `json:"3h"`
}
type Snow struct {
OneHour float32 `json:"1h"`
ThreeHours float32 `json:"3h"`
}
type Wind struct {
Speed float32 `config:"speed"`
Deg float32 `config:"deg"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.