Markus Pesch
3a090d190e
changes: - fix: read temperature values without daemon Add subcommand to read temperature values without starting the daemon - fix: implement measured value types Replace measured value types with constants - fix: add sensor pipelines Add functions which returns a channel with measured values - fix: filter measured values from a channel Add functions to filter measured values by sensor id or measured value types.
15 lines
229 B
Go
15 lines
229 B
Go
package sensor
|
|
|
|
import (
|
|
"time"
|
|
|
|
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
|
|
)
|
|
|
|
type Sensor interface {
|
|
GetTicker() *time.Ticker
|
|
|
|
// Read single measured values from sensor
|
|
Read() ([]*types.MeasuredValue, error)
|
|
}
|