Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Daily ¶
type Daily struct { PrecipitationHours []float32 `json:"precipitation_hours"` PrecipitationSum []PrecipitationSum `json:"precipitation_sum"` Sunrise []string `json:"sunrise"` Sunset []string `json:"sunset"` Temperature2MMax []Temperature `json:"temperature_2m_max"` Temperature2MMin []Temperature `json:"temperature_2m_min"` Time []string `json:"time"` Weathercode []Weathercode `json:"weathercode"` }
type Hourly ¶
type Hourly struct { Precipitation []float64 `json:"precipitation"` Temperature2M []Temperature `json:"temperature_2m"` Time []string `json:"time"` Weathercode []Weathercode `json:"weathercode"` }
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func New ¶
func New(geocodingService model.GeocodingService, homeService model.HomeService) *Plugin
type PrecipitationSum ¶
type PrecipitationSum float64
func (PrecipitationSum) String ¶
func (precipitationSum PrecipitationSum) String() string
type Response ¶
type Response struct { CurrentWeather struct { Temperature Temperature `json:"temperature"` Weathercode Weathercode `json:"weathercode"` } `json:"current_weather"` Daily Daily `json:"daily"` Hourly Hourly `json:"hourly"` }
type Temperature ¶
type Temperature float64
func (Temperature) Icon ¶
func (temperature Temperature) Icon() string
func (Temperature) String ¶
func (temperature Temperature) String() string
type Weathercode ¶
type Weathercode float32
func (Weathercode) Description ¶
func (weathercode Weathercode) Description() string
func (Weathercode) Icon ¶
func (weathercode Weathercode) Icon() string
Click to show internal directories.
Click to hide internal directories.