1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-19 11:30:44 +02:00

Xiaomi: add two more fields to current weather (seen on Mi Band 8)

This commit is contained in:
Andreas Shimokawa 2023-10-24 22:03:50 +02:00 committed by José Rebelo
parent 929ea7ae57
commit 9749716c23
2 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,8 @@ public class XiaomiWeatherService extends AbstractXiaomiService {
.setTimestamp(timestamp)
.setUnk2("")
.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
.setTemperature(XiaomiProto.WeatherCurrentTemperature.newBuilder()

View File

@ -649,6 +649,8 @@ message WeatherCurrentTimeLocation {
optional string timestamp = 1;
optional string unk2 = 2;
optional string currentLocationString = 3;
optional string currentLocationCode = 4;
optional bool unk5 = 5; // default location?
}
message WeatherCurrentTemperature {