mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-18 05:17:08 +01:00
Zepp OS: Send UV Index as integer
This commit is contained in:
parent
50c474e9ef
commit
c912ea0378
@ -421,7 +421,7 @@ public class Huami2021Weather {
|
|||||||
pressure = new UnitValue(Unit.PRESSURE_MB, Math.round(weatherSpec.pressure));
|
pressure = new UnitValue(Unit.PRESSURE_MB, Math.round(weatherSpec.pressure));
|
||||||
pubTime = new Date(weatherSpec.timestamp * 1000L);
|
pubTime = new Date(weatherSpec.timestamp * 1000L);
|
||||||
temperature = new UnitValue(Unit.TEMPERATURE_C, weatherSpec.currentTemp - 273);
|
temperature = new UnitValue(Unit.TEMPERATURE_C, weatherSpec.currentTemp - 273);
|
||||||
uvIndex = String.valueOf(weatherSpec.uvIndex);
|
uvIndex = String.valueOf(Math.round(weatherSpec.uvIndex));
|
||||||
visibility = new UnitValue(Unit.KM, Math.round(weatherSpec.visibility / 1000));
|
visibility = new UnitValue(Unit.KM, Math.round(weatherSpec.visibility / 1000));
|
||||||
weather = String.valueOf(mapToZeppOsWeatherCode(weatherSpec.currentConditionCode));
|
weather = String.valueOf(mapToZeppOsWeatherCode(weatherSpec.currentConditionCode));
|
||||||
wind = new Wind(weatherSpec.windDirection, Math.round(weatherSpec.windSpeed));
|
wind = new Wind(weatherSpec.windDirection, Math.round(weatherSpec.windSpeed));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user