-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hello,
My app make a OneCall3 on position 46.0280575,6.55774, on 15 and 16 mars, there was snow forecast.
CurrentWeatherData forecast = this.owm
.oneCall3()
.current()
.byCoordinate(Coordinate.of(position.lat, position.lng))
.unitSystem(UnitSystem.METRIC)
.exclude(OneCallResultOptions.DAILY, OneCallResultOptions.MINUTELY, OneCallResultOptions.ALERTS)
.retrieve()
.asJava()
forecast.current.snow is every time null but there is a lot of snow in real.
forecast.getHourlyList().each { Hourly hWeather ->
Long forecastTime = this.localDateTimeToGmtTs(hWeather.getForecastTime())
if (hWeather.getRain() == null && hWeather.getSnow() == null) {
ForecastService.logInfo(deviceId, "getForecastOneCall", 1, "${logPre} there is no rain or snow at ${new Date(forecastTime)} (locale)")
return
}
if (hWeather.getSnow()) {
ForecastService.logInfo(deviceId, "getForecastOneCall", 1,
"${logPre} Forecast Snow level at ${new Date(forecastTime)} (locale): " + hWeather.snow?.oneHourLevel)
rainForecast.add(
new RainLevel(forecastTime, hWeather.snow.oneHourLevel.doubleValue())
)
}
}
Snow is every time empty, can you take a look please if you complete the snow property correctly ?
Thanks a lot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working