add: termperatures log

This commit is contained in:
2018-11-30 21:50:43 +01:00
parent 7b18b115c8
commit ba9f0c59f3
5 changed files with 135 additions and 39 deletions

View File

@ -99,6 +99,16 @@ func (s *Sensor) DecodeFromJSON(r io.Reader) error {
return nil
}
func (s *Sensor) HumanName() string {
if s.SensorName != nil {
return *s.SensorName
}
if s.WireID != nil {
return *s.WireID
}
return s.SensorID
}
// Temperature ...
type Temperature struct {
TemperatureID string `json:"temperature_id"`