add: termperatures log
This commit is contained in:
@ -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"`
|
||||
|
Reference in New Issue
Block a user