Documentation
¶
Overview ¶
Package weathercloud implements the Weathercloud device upload protocol.
Index ¶
- Variables
- type Device
- type Wx
- func (w *Wx) Bar(in float64)
- func (w *Wx) DailyET(in float64)
- func (w *Wx) DailyRain(in float64)
- func (w *Wx) DewPoint(f float64)
- func (w *Wx) HeatIndex(f float64)
- func (w *Wx) InHumidity(p int)
- func (w *Wx) InTemp(f float64)
- func (w *Wx) LeafWetness(p int)
- func (w *Wx) OutHumidity(p int)
- func (w *Wx) OutTemp(f float64)
- func (w *Wx) RainRate(in float64)
- func (w *Wx) SoilMoist(cb int)
- func (w *Wx) SolarRad(wm2 int)
- func (w *Wx) UVIndex(i float64)
- func (w *Wx) WindChill(f float64)
- func (w *Wx) WindDir(deg int)
- func (w *Wx) WindDirAvg(deg int)
- func (w *Wx) WindGustSpeed(mph float64)
- func (w *Wx) WindSpeed(mph float64)
- func (w *Wx) WindSpeedAvg(mph float64)
Constants ¶
This section is empty.
Variables ¶
View Source
var URL = "http://api.weathercloud.net/v01"
URL is the base API URL.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
WID string // Device ID (assigned during creation)
Key string // Device key (assigned during creation)
SoftwareType uint16 // Software type
SoftwareVersion string // Software version
Time time.Time // Upload time (default is now)
}
Device represents a weather device.
type Wx ¶
Wx represents weather observations.
func (*Wx) InHumidity ¶
InHumidity is the indoor humidity percentage (0-100).
func (*Wx) OutHumidity ¶
OutHumidity is the outdoor humidity percentage (0-100).
func (*Wx) RainRate ¶
RainRate is rain over the past hour or the accumulated rainfall for the past 60 minutes in inches.
func (*Wx) WindDirAvg ¶
WindDirAvg is the 10 minute average wind direction in degrees (0-359).
func (*Wx) WindGustSpeed ¶
WindGustSpeed is the 10 minute wind gust speed in miles per hour.
func (*Wx) WindSpeedAvg ¶
WindSpeedAvg is the 10 minute average wind speed in miles per hour.
Click to show internal directories.
Click to hide internal directories.