fix(cmd/daemon): default settings
This commit is contained in:
@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"math"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@ -56,7 +55,7 @@ func (s *BME280) Read() ([]types.MeasuredValue, error) {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
pressureValueRound := math.Round(float64(pressureValue)/10*0.25) * 10 / 0.25
|
||||
// pressureValueRound := math.Round(float64(pressureValue)/10*0.25) * 10 / 0.25
|
||||
|
||||
_, humidityValue, err := sensor.ReadHumidityRH(bsbmp.ACCURACY_STANDARD)
|
||||
if err != nil {
|
||||
@ -73,7 +72,7 @@ func (s *BME280) Read() ([]types.MeasuredValue, error) {
|
||||
},
|
||||
&types.Pressure{
|
||||
PressureID: uuid.NewV4().String(),
|
||||
PressureValue: pressureValueRound,
|
||||
PressureValue: float64(pressureValue),
|
||||
PressureFromDate: time.Now(),
|
||||
PressureTillDate: time.Now(),
|
||||
SensorID: s.SensorID,
|
||||
|
Reference in New Issue
Block a user