barista.run: barista.run/modules/weather/metar Index | Files

package metar

import "barista.run/modules/weather/metar"

Package metar provides weather using the METAR API from the NOAA Aviation Digital Data Service, available at https://www.aviationweather.gov/.

Index

Package Files

metar.go

type Config Uses

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

Config represents NOAA ADDS configuration from which a weather.Provider can be built.

func Station Uses

func Station(station string) *Config

Station creates a configuration for the given airport code (e.g. KSEA).

func (*Config) Build Uses

func (c *Config) Build() weather.Provider

Build builds a weather provider from the configuration.

func (*Config) IncludeFlightCat Uses

func (c *Config) IncludeFlightCat() *Config

IncludeFlightCat adds flight category to the description.

func (*Config) StripRemarks Uses

func (c *Config) StripRemarks() *Config

StripRemarks strips remarks from the description.

Package metar imports 10 packages (graph). Updated 2018-12-20. Refresh now. Tools for package owners.