Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MStation ¶
type MStation struct { Id string `xml:"id"` Location string `xml:"location"` Homepage string `xml:"homepage"` Datasheet string `xml:"datasheet"` Author string `xml:"author"` PubDate string `xml:"pubDate"` QOS string `xml:"qos"` StationData struct { Temperature struct { Unit string `xml:"unit"` Now float64 `xml:"now"` Max float64 `xml:"max"` Min float64 `xml:"min"` } `xml:"temperature"` Humidity struct { Unit string `xml:"unit"` Now float64 `xml:"now"` Max float64 `xml:"max"` Min float64 `xml:"min"` } `xml:"humidity"` Barometre struct { Unit string `xml:"unit"` Now float64 `xml:"now"` Max float64 `xml:"max"` Min float64 `xml:"min"` } `xml:"barometre"` Wind struct { Unit string `xml:"unit"` Now float64 `xml:"now"` Max float64 `xml:"max"` Azimuth int `xml:"azimuth"` } `xml:"wind"` Rain struct { Unit string `xml:"unit"` Total float64 `xml:"total"` } `xml:"rain"` } `xml:"stationdata"` }
type MeteoClimatic ¶
func New ¶
func New(id string) (MeteoClimatic, error)
func (*MeteoClimatic) GetStationInfo ¶
func (mc *MeteoClimatic) GetStationInfo() error
Parse XML and return a struct with all the data
Click to show internal directories.
Click to hide internal directories.