mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 08:05:55 +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)
|
||||
.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()
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user