mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-30 22:12:55 +01:00
read humidity from CM Weather provider
This commit is contained in:
parent
948002dc7c
commit
22eb69d1c2
@ -134,6 +134,7 @@ public class CMWeatherReceiver extends BroadcastReceiver implements CMWeatherMan
|
|||||||
}
|
}
|
||||||
weatherSpec.currentConditionCode = Weather.mapToOpenWeatherMapCondition(CMtoYahooCondintion(weatherInfo.getConditionCode()));
|
weatherSpec.currentConditionCode = Weather.mapToOpenWeatherMapCondition(CMtoYahooCondintion(weatherInfo.getConditionCode()));
|
||||||
weatherSpec.currentCondition = Weather.getConditionString(weatherSpec.currentConditionCode);
|
weatherSpec.currentCondition = Weather.getConditionString(weatherSpec.currentConditionCode);
|
||||||
|
weatherSpec.currentHumidity = (int) weatherInfo.getHumidity();
|
||||||
|
|
||||||
weatherSpec.forecasts = new ArrayList<>();
|
weatherSpec.forecasts = new ArrayList<>();
|
||||||
List<WeatherInfo.DayForecast> forecasts = weatherInfo.getForecasts();
|
List<WeatherInfo.DayForecast> forecasts = weatherInfo.getForecasts();
|
||||||
|
Loading…
Reference in New Issue
Block a user