Compare commits

...

2 commits

Author SHA1 Message Date
5ae8daae5e
don't copy config file
All checks were successful
continuous-integration/drone/push Build is passing
2021-02-27 08:19:17 -06:00
a1cdaf9b18
battery type should be unsigned 2021-02-27 08:18:53 -06:00
2 changed files with 2 additions and 3 deletions

View file

@ -45,7 +45,6 @@ steps:
source:
- ble-sensors-${DRONE_BUILD_STARTED}
- ble-sensors.service
- ble-sensors.yaml
- name: deploy
image: appleboy/drone-ssh

View file

@ -88,7 +88,7 @@ func ParseCleargrassSensorData(writeAPI *influxdb2_api.WriteAPI, logger *zap.Log
continue
}
battery := int(eventData[0])
battery := uint8(eventData[0])
point := influxdb2.NewPointWithMeasurement("battery")
point.SetTime(timestamp)
@ -108,7 +108,7 @@ func ParseCleargrassSensorData(writeAPI *influxdb2_api.WriteAPI, logger *zap.Log
zap.String("description", description),
zap.String("measurement", "battery"),
zap.String("measurement_unit", "%"),
zap.Int("value", battery))
zap.Uint8("value", battery))
default:
logger.Warn("unknown event type",