fermentord/pkg/temperature/temperature.go

14 lines
229 B
Go
Raw Normal View History

2021-09-30 18:36:41 +00:00
package temperature
import "time"
type TemperatureReading struct {
Sensor string
Time time.Time
MilliDegrees int64
}
func (t *TemperatureReading) Degrees() float64 {
return float64(t.MilliDegrees) / 1000.0
}