1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 20:36:51 +01:00

read humidity from CM Weather provider

This commit is contained in:
Andreas Shimokawa 2017-12-14 15:10:14 +01:00
parent 948002dc7c
commit 22eb69d1c2

View File

@ -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();