Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StationsHandler ¶
Types ¶
type ClimateInstance ¶
type ClimateReport ¶
type ClimateReport struct { Maximum ClimateInstance `json:"maximum"` Minimum ClimateInstance `json:"minimum"` Precipitations Precipitations `json:"precipitations"` }
type ClimateStation ¶
type ClimateStation struct { Code int `json:"code"` Name string `json:"name"` Operational bool `json:"operational"` LastReport time.Time `json:"last_report"` Temperature float64 `json:"temperature"` Humidity float64 `json:"humidity"` PresureHPas float64 `json:"presure_hpas"` Today ClimateReport `json:"today"` Yesterday ClimateReport `json:"yesterday"` }
func GetClimateStations ¶
func GetClimateStations() ([]ClimateStation, error)
func ParseClimateHTML ¶
func ParseClimateHTML(r io.ReadCloser) (stations []ClimateStation, err error)
type Precipitations ¶
Click to show internal directories.
Click to hide internal directories.