Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f0bda0a3bd | |||
1ee231fe30 |
@ -15,13 +15,13 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.9
|
version: 0.1.10
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "v0.15.4"
|
appVersion: "v0.15.6"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: hull
|
- name: hull
|
||||||
|
@ -52,10 +52,8 @@ var mockUpdate = &weather.WeatherUpdate{
|
|||||||
TempHumiditySensors: []*weather.TempHumiditySensor{
|
TempHumiditySensors: []*weather.TempHumiditySensor{
|
||||||
{Name: "sensor1", TempF: ptr.To(99.999), Humidity: nil},
|
{Name: "sensor1", TempF: ptr.To(99.999), Humidity: nil},
|
||||||
},
|
},
|
||||||
LightningData: &weather.LightningData{
|
|
||||||
LightningDay: ptr.To(1),
|
LightningDay: ptr.To(1),
|
||||||
LightningDistance: ptr.To(20),
|
LightningDistance: ptr.To(20),
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestUpdateToPbUpdate(t *testing.T) {
|
func TestUpdateToPbUpdate(t *testing.T) {
|
||||||
|
@ -143,11 +143,9 @@ func MapAwnUpdate(awnUpdate *AmbientWeatherUpdate) *weather.WeatherUpdate {
|
|||||||
{Name: THSensor + "7", TempF: awnUpdate.Temp7F, Humidity: awnUpdate.Humidity7},
|
{Name: THSensor + "7", TempF: awnUpdate.Temp7F, Humidity: awnUpdate.Humidity7},
|
||||||
{Name: THSensor + "8", TempF: awnUpdate.Temp8F, Humidity: awnUpdate.Humidity8},
|
{Name: THSensor + "8", TempF: awnUpdate.Temp8F, Humidity: awnUpdate.Humidity8},
|
||||||
},
|
},
|
||||||
LightningData: &weather.LightningData{
|
|
||||||
LightningDay: awnUpdate.LightningDay,
|
LightningDay: awnUpdate.LightningDay,
|
||||||
LightningDistance: awnUpdate.LightningDistance,
|
LightningDistance: awnUpdate.LightningDistance,
|
||||||
LightningTime: awnUpdate.LightningTime,
|
LightningTime: awnUpdate.LightningTime,
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,10 +41,6 @@ type WeatherUpdate struct {
|
|||||||
// Extra Temp+Humidity Sensors
|
// Extra Temp+Humidity Sensors
|
||||||
TempHumiditySensors []*TempHumiditySensor `json:"tempHumiditySensors,omitempty"`
|
TempHumiditySensors []*TempHumiditySensor `json:"tempHumiditySensors,omitempty"`
|
||||||
// Lightning Data
|
// Lightning Data
|
||||||
*LightningData
|
|
||||||
}
|
|
||||||
|
|
||||||
type LightningData struct {
|
|
||||||
LightningDay *int `json:"lightningDay,omitempty"` // Count of detections
|
LightningDay *int `json:"lightningDay,omitempty"` // Count of detections
|
||||||
LightningDistance *int `json:"lightningDistance,omitempty"` // Last detection distance [kilometers]
|
LightningDistance *int `json:"lightningDistance,omitempty"` // Last detection distance [kilometers]
|
||||||
LightningTime *int `json:"lightningTime,omitempty"` // Last detection time
|
LightningTime *int `json:"lightningTime,omitempty"` // Last detection time
|
||||||
|
Reference in New Issue
Block a user