Documentation ¶
Index ¶
Constants ¶
View Source
const THSensorDewPoint int = 2
THSensorDewPoint is a constant holding the sensor number for temperature
View Source
const THSensorHumidity int = 1
THSensorHumidity is a constant holding the sensor number for temperature
View Source
const THSensorTemperature int = 0
THSensorTemperature is a constant holding the sensor number for temperature
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Sensorid string `xml:"sensorid,attr"` Name string `xml:"name,attr"` Value float64 `xml:"value,attr"` Trend float64 `xml:"trend,attr"` }
Entry hold a data entry
type Querx ¶
type Querx struct { Host string Port int TLS bool Current QuerxData Datalogger QuerxData Type string // contains filtered or unexported fields }
Querx provides a frame for a Querx
func (*Querx) CurrentValue ¶
Returns the current value for a given sensor
func (*Querx) QueryCurrent ¶
QueryCurrent retrieves current readings from Querx
type QuerxData ¶
type QuerxData struct { Version string `xml:"version"` Hostname string `xml:"hostname"` IP string `xml:"ip"` Port uint64 `xml:"port"` DateGmt string `xml:"date_gmt"` DateLocal string `xml:"date_local"` Contact string `xml:"contact"` Location string `xml:"location"` Sensors Sensors `xml:"sensors"` Data Data `xml:"data"` }
QuerxData provides a Querx
type Record ¶
type Record struct { Timestamp string `xml:"timestamp"` Date string `xml:"date"` Time string `xml:"datetime"` Entry []Entry `xml:"entry"` }
Record holds meta data of a single record
Click to show internal directories.
Click to hide internal directories.