Compare commits

..

No commits in common. "5ae8daae5ee82eb7c663fd535d121c0e58fa29fb" and "2095a29c534c88380605afce07b2a536520b1b53" have entirely different histories.

2 changed files with 3 additions and 2 deletions

View file

@ -45,6 +45,7 @@ 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 := uint8(eventData[0])
battery := int(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.Uint8("value", battery))
zap.Int("value", battery))
default:
logger.Warn("unknown event type",