feat: Save sensor/battery status
This commit is contained in:
parent
2c21daf3c4
commit
224fdba4ac
1 changed files with 10 additions and 3 deletions
|
@ -69,9 +69,16 @@ defmodule WeewxProxy.HTTP.Ecowitt do
|
||||||
# Indoor
|
# Indoor
|
||||||
inTemp: Utils.parse_float(data["tempinf"]),
|
inTemp: Utils.parse_float(data["tempinf"]),
|
||||||
inHumidity: Utils.parse_float(data["humidityin"]),
|
inHumidity: Utils.parse_float(data["humidityin"]),
|
||||||
# Battery
|
# Battery Status: Outdoor sensor array
|
||||||
soilMoistBatteryVoltage1: Utils.parse_float(data["soilbatt1"]),
|
batteryStatus1: Utils.parse_integer(data["wh65batt"]),
|
||||||
soilTempBatteryVoltage1: Utils.parse_float(data["tf_batt1"])
|
# Battery Status: Lightning sensor
|
||||||
|
batteryStatus2: Utils.parse_integer(data["wh57batt"]),
|
||||||
|
# Battery Status: Indoor sensor
|
||||||
|
inTempBatteryStatus: Utils.parse_integer(data["wh25batt"]),
|
||||||
|
# Battery Voltage: Soil moisture sensor
|
||||||
|
batteryStatus3: Utils.parse_float(data["soilbatt1"]),
|
||||||
|
# Battery Voltage: Soil temperature sensor
|
||||||
|
batteryStatus4: Utils.parse_float(data["tf_batt1"])
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue