weather

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentWeatherData

type CurrentWeatherData struct {
	Name string `json:"name"`
	Sys  struct {
		Sunrise int `json:"sunrise"`
		Sunset  int `json:"sunset"`
	} `json:"sys"`
	Weather []weatherWeather `json:"weather"`
	Main    weatherMain      `json:"main"`
}

type ForecastWeatherData

type ForecastWeatherData struct {
	List []struct {
		Dt      int                `json:"dt"`
		Main    weatherMain        `json:"main"`
		Weather []weatherWeather   `json:"weather"`
		Rain    map[string]float32 `json:"rain"`
	}
}

type StatusView

type StatusView struct {
	// contains filtered or unexported fields
}

func New

func New() *StatusView

func (*StatusView) Primitive

func (l *StatusView) Primitive() tview.Primitive

func (*StatusView) Start

func (l *StatusView) Start()

func (*StatusView) Stop

func (l *StatusView) Stop()

func (*StatusView) Update

func (l *StatusView) Update() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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