weather_pleasantry

package
v0.0.0-...-6307f30 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayForecastData

func DisplayForecastData(location string, dailyDetails map[time.Weekday]model.DailyWeatherDetails)

func ProcessForecastData

func ProcessForecastData(weeklyData []model.WeatherData, config WeatherPleasantnessConfig) (map[time.Weekday]model.DailyWeatherDetails, float64)

func ProcessLocation

func ProcessLocation(location model.DestinationInfo) (float64, map[time.Weekday]model.DailyWeatherDetails)

Types

type ForecastResponse

type ForecastResponse struct {
	List []model.WeatherData `json:"list"`
}

type WeatherPleasantnessConfig

type WeatherPleasantnessConfig struct {
	Conditions map[string]float64 `yaml:"conditions"`
}

func LoadWeatherPleasantnessConfig

func LoadWeatherPleasantnessConfig(filePath string) (WeatherPleasantnessConfig, error)

Jump to

Keyboard shortcuts

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