ims

package
v0.0.0-...-11d1f34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forecast

type Forecast struct {
	Name      string           `xml:"LocationMetaData>LocationName"`
	Lat       float32          `xml:"LocationMetaData>LocationLatitude"`
	Long      float32          `xml:"LocationMetaData>LocationLongitude"`
	Elevation float32          `xml:"LocationMetaData>LocationHeight"`
	Forecast  []HourlyForecast `xml:"LocationData>Forecast"`
}

func Predict

func Predict() ([]Forecast, error)

type ForecastTime

type ForecastTime struct {
	time.Time
}

func (*ForecastTime) UnmarshalXML

func (c *ForecastTime) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type HourlyForecast

type HourlyForecast struct {
	Time      ForecastTime `xml:"ForecastTime"`
	Temp      float32      `xml:"Temperature"`
	RelHum    float32      `xml:"RelativeHumidity"`
	WindSpeed float32      `xml:"WindSpeed"`
	WindDir   float32      `xml:"WindDirection"`
}

type Measurement

type Measurement struct {
	// Time of Forecast
	Time       time.Time
	GroundTemp float32
	DryTemp    float32
	RelHumid   float32
	WindDir    float32
	WindSpeed  float32
}

type Station

type Station int
const (
	StationMegido Station = 16
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL