mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-04 21:13:54 +01:00
Xiaomi: add two more fields to current weather (seen on Mi Band 8)
This commit is contained in:
parent
929ea7ae57
commit
9749716c23
@ -83,6 +83,8 @@ public class XiaomiWeatherService extends AbstractXiaomiService {
|
|||||||
.setTimestamp(timestamp)
|
.setTimestamp(timestamp)
|
||||||
.setUnk2("")
|
.setUnk2("")
|
||||||
.setCurrentLocationString(weatherSpec.location)
|
.setCurrentLocationString(weatherSpec.location)
|
||||||
|
.setCurrentLocationCode("accu:123456") // FIXME:AccuWeather code (we do not have it here)
|
||||||
|
.setUnk5(true)
|
||||||
)
|
)
|
||||||
.setWeatherCondition(HuamiWeatherConditions.mapToAmazfitBipWeatherCode(weatherSpec.currentConditionCode)) // *SEEMS* to work
|
.setWeatherCondition(HuamiWeatherConditions.mapToAmazfitBipWeatherCode(weatherSpec.currentConditionCode)) // *SEEMS* to work
|
||||||
.setTemperature(XiaomiProto.WeatherCurrentTemperature.newBuilder()
|
.setTemperature(XiaomiProto.WeatherCurrentTemperature.newBuilder()
|
||||||
|
@ -649,6 +649,8 @@ message WeatherCurrentTimeLocation {
|
|||||||
optional string timestamp = 1;
|
optional string timestamp = 1;
|
||||||
optional string unk2 = 2;
|
optional string unk2 = 2;
|
||||||
optional string currentLocationString = 3;
|
optional string currentLocationString = 3;
|
||||||
|
optional string currentLocationCode = 4;
|
||||||
|
optional bool unk5 = 5; // default location?
|
||||||
}
|
}
|
||||||
|
|
||||||
message WeatherCurrentTemperature {
|
message WeatherCurrentTemperature {
|
||||||
|
Loading…
Reference in New Issue
Block a user