dwd

package module
v0.0.0-...-b04a128 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: MIT Imports: 11 Imported by: 0

README

dwd

dwd package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int

func (*Direction) Degree

func (d *Direction) Degree() int

func (*Direction) Radian

func (d *Direction) Radian() float32

type Forecast

type Forecast struct {
	WindGust       int
	WindSpeed      int
	DayDate        time.Time
	WindDirection  Direction
	Precipitation  float32
	Icon2          int
	Icon1          int
	TemperatureMin float32
	TemperatureMax float32
}

type Session

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

func (*Session) Init

func (s *Session) Init() error

func (*Session) IsInitialized

func (s *Session) IsInitialized() bool

func (*Session) Overview

func (s *Session) Overview(station string) ([]Forecast, error)

type Station

type Station struct {
	Pk             string
	Name           string
	X              float64
	Y              float64
	Altitude       int
	Priority       int
	Private        bool
	HasMeasurement bool
	HasWarnregion  bool
	Country        string
	Active         bool
}

func Stations

func Stations() ([]Station, error)

Jump to

Keyboard shortcuts

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