Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Display ¶
type Display struct { sync.RWMutex Temperature float64 LastHourTemperature float64 RelativeHumidity float64 LastHourRelativeHumidity float64 OutdoorTemperature float64 LastHourOutdoorTemperature float64 MesonetLastData time.Time // contains filtered or unexported fields }
func New ¶
func New(icfg *InfluxDBConfig, ocfg *OutputConfig) *Display
func (*Display) ServeImage ¶
func (d *Display) ServeImage(w http.ResponseWriter, req *http.Request)
func (*Display) ServeLargePNG ¶
func (d *Display) ServeLargePNG(w http.ResponseWriter, req *http.Request)
type InfluxDBConfig ¶
type InfluxDBConfig struct { Address string `` /* 141-byte string literal not displayed */ Token string `long:"influxdb_token" env:"INFLUXDB_TOKEN" description:"An access token to query the provided InfluxDB server."` Org string `long:"influxdb_org" env:"INFLUXDB_ORG" description:"The org that your data is in."` }
type OutputConfig ¶
Click to show internal directories.
Click to hide internal directories.