components

package
v0.0.0-...-ee84426 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClock

func GetClock() (*canvas.Text, *canvas.Text)

func GetMedia

func GetMedia(m media.MediaStream, rdy chan bool) *fyne.Container

func GetWeather

func GetWeather() *widget.Label

func NewNext

func NewNext(next time.Time) *widget.Label

Types

type ApiResponse

type ApiResponse struct {
	Latitude  float32 `json:"latitude"`
	Longitude float32 `json:"longitude"`
	Current   struct {
		Temp float32 `json:"temperature_2m"`
	} `json:"current"`
	Hourly struct {
		Time        [72]string  `json:"time"`
		Temperature [72]float32 `json:"temperature_2m"`
		RainChance  [72]float32 `json:"percipitation_propability"`
		RainAmount  [72]float32 `json:"precipitation"`
	} `json:"hourly"`
}
HourlyUnits struct {
		Time string `json:"time"`
		Temp string `json:"temperature_2m"`
		Change string

	} `json:"hourly_units"`

type TimePoint

type TimePoint struct {
	Time       time.Time
	Temp       float32
	RainChance float32
}

Jump to

Keyboard shortcuts

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