PKGBUILD/pkg/sensor/interfaces.go
Markus Pesch 3a090d190e
fix: cli temperature read
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.
2020-09-21 20:05:37 +02:00

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)
}