Skip to content

Commit

Permalink
RSDK-1903 - change temperature sensor readings to convention names (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-mishra authored Feb 28, 2023
1 parent f3d5835 commit 3de25e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/sensor/bme280/bme280.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (s *bme280) Readings(ctx context.Context, extra map[string]interface{}) (ma
"dew_point_celsius": dewPt,
"temperature_fahrenheit": temp*1.8 + 32,
"dew_point_fahrenheit": dewPt*1.8 + 32,
"humidity_pct_rh": humid,
"relative_humidity_pct": humid,
"pressure_mpa": pressure,
}, handle.Close()
}
Expand Down
2 changes: 1 addition & 1 deletion components/sensor/ds18b20/ds18b20.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ func (s *Sensor) Readings(ctx context.Context, extra map[string]interface{}) (ma
if err != nil {
return nil, err
}
return map[string]interface{}{"temp": temp}, nil
return map[string]interface{}{"degrees_celsius": temp}, nil
}

0 comments on commit 3de25e0

Please sign in to comment.