Compare commits
2 commits
2095a29c53
...
5ae8daae5e
Author | SHA1 | Date | |
---|---|---|---|
5ae8daae5e | |||
a1cdaf9b18 |
2 changed files with 2 additions and 3 deletions
|
@ -45,7 +45,6 @@ steps:
|
|||
source:
|
||||
- ble-sensors-${DRONE_BUILD_STARTED}
|
||||
- ble-sensors.service
|
||||
- ble-sensors.yaml
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue