Compare commits
No commits in common. "5ae8daae5ee82eb7c663fd535d121c0e58fa29fb" and "2095a29c534c88380605afce07b2a536520b1b53" have entirely different histories.
5ae8daae5e
...
2095a29c53
2 changed files with 3 additions and 2 deletions
|
@ -45,6 +45,7 @@ steps:
|
||||||
source:
|
source:
|
||||||
- ble-sensors-${DRONE_BUILD_STARTED}
|
- ble-sensors-${DRONE_BUILD_STARTED}
|
||||||
- ble-sensors.service
|
- ble-sensors.service
|
||||||
|
- ble-sensors.yaml
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
|
|
@ -88,7 +88,7 @@ func ParseCleargrassSensorData(writeAPI *influxdb2_api.WriteAPI, logger *zap.Log
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
battery := uint8(eventData[0])
|
battery := int(eventData[0])
|
||||||
|
|
||||||
point := influxdb2.NewPointWithMeasurement("battery")
|
point := influxdb2.NewPointWithMeasurement("battery")
|
||||||
point.SetTime(timestamp)
|
point.SetTime(timestamp)
|
||||||
|
@ -108,7 +108,7 @@ func ParseCleargrassSensorData(writeAPI *influxdb2_api.WriteAPI, logger *zap.Log
|
||||||
zap.String("description", description),
|
zap.String("description", description),
|
||||||
zap.String("measurement", "battery"),
|
zap.String("measurement", "battery"),
|
||||||
zap.String("measurement_unit", "%"),
|
zap.String("measurement_unit", "%"),
|
||||||
zap.Uint8("value", battery))
|
zap.Int("value", battery))
|
||||||
|
|
||||||
default:
|
default:
|
||||||
logger.Warn("unknown event type",
|
logger.Warn("unknown event type",
|
||||||
|
|
Loading…
Reference in a new issue