weather

package
v0.0.0-...-4e5a236 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package weather implements methods to gather weather and AQI from OpenWeatherMap and present it in a pretty string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WeatherInfo

type WeatherInfo struct {
	Start periodWeatherInfo
	End   periodWeatherInfo
	Aqi   string
}

func GetWeatherLine

func GetWeatherLine(c *client.Client, startDate time.Time, elapsed int32, lat, lon float64) (*WeatherInfo, error)

GetWeatherLine returns the weather conditions in a struct for passing to the templating.

Jump to

Keyboard shortcuts

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