Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccelerationData ¶
type Config ¶
type Config struct { Output string `json:"output"` SensorWhitelist SensorWhitelist `json:"sensor_whitelist"` SqsOutputConfig *SqsOutputConfig `json:"sqsoutput_config"` // used if output=sqsoutput }
type Output ¶
type Output interface {
GetObservationsChan() chan<- ResolvedSensorObservation
}
type ResolvedSensorObservation ¶
type ResolvedSensorObservation struct { SensorName string `json:"sensor_name"` Observation SensorObservation `json:"observation"` }
resolved observation means an observation whose presence is detected against a whitelist and thus its friendly name is now also known
type SensorMeasurements ¶
type SensorMeasurements struct { Temperature float64 `json:"temperature"` Humidity float64 `json:"humidity"` Pressure uint32 `json:"pressure"` Battery float64 `json:"battery"` Acceleration AccelerationData `json:"acceleration"` }
type SensorObservation ¶
type SensorObservation struct { SensorAddr string `json:"sensor_addr"` Time time.Time `json:"time"` Measurements SensorMeasurements `json:"measurements"` }
type SensorResolver ¶
type SensorResolver interface {
Resolve(SensorObservation) (*ResolvedSensorObservation, bool)
}
type SqsOutputConfig ¶
Click to show internal directories.
Click to hide internal directories.