Weather Binding UV Index not parsed (ForecastIO)

weatherbinding
forecastio
Tags: #<Tag:0x00007fe052bc5ec8> #<Tag:0x00007fe052bc5d88>

(Luis) #1

Hello OH Community,

I’ve noticed a problem within the Weather Binding. After some debugging I asume this is a bug in the binding.

Initial situation: I’ve configured the wheather binding for ForecastIo foloowing the documentation steps. Everything is working as expected, but the UV Index is never parsed. I changed the debug level for the weather binding logging to TRACE and this is what i got:


2018-11-21 11:17:51.404 [DEBUG] [eather.internal.scheduler.WeatherJob] - Starting Weather job for location 'home3'

2018-11-21 11:17:51.411 [TRACE] [nal.provider.AbstractWeatherProvider] - FORECASTIO[home3]: request : https://api.darksky.net/forecast/xxxxx/49.xxxxx,9.xxxx?units=si&lang=de&exclude=hourly,flags

2018-11-21 11:17:51.995 [TRACE] [nal.provider.AbstractWeatherProvider] - FORECASTIO[home3]: response: {"latitude":49.xxxxx,"longitude":9.xxxxx,"timezone":"Europe/Berlin","currently":{"time":1542795471,"summary":"Überwiegend bewölkt","icon":"partly-cloudy-day","precipIntensity":0,"precipProbability":0,"temperature":3.03,"apparentTemperature":-1,"dewPoint":-0.21,"humidity":0.79,"pressure":1014.98,"windSpeed":4.77,"windGust":5.45,"windBearing":88,"cloudCover":0.83,"uvIndex":1,"visibility":10.94,"ozone":321.5},"daily":{"summary":"Regen am nächsten Mittwoch mit steigender Temperatur von 9°C am Freitag.","icon":"rain","data":[{"time":1542754800,"summary":"Den ganzen Tag lang überwiegend bewölkt.","icon":"partly-cloudy-day","sunriseTime":1542782581,"sunsetTime":1542814568,"moonPhase":0.43,"precipIntensity":0,"precipIntensityMax":0.0025,"precipIntensityMaxTime":1542780000,"precipProbability":0,"temperatureHigh":5.57,"temperatureHighTime":1542805200,"temperatureLow":-1.79,"temperatureLowTime":1542866400,"apparentTemperatureHigh":3.28,"apparentTemperatureHighTime":1542805200,"apparentTemperatureLow":-3.78,"apparentTemperatureLowTime":1542866400,"dewPoint":-1.47,"humidity":0.81,"pressure":1015.06,"windSpeed":3.76,"windGust":7.44,"windGustTime":1542769200,"windBearing":92,"cloudCover":0.62,"**uvIndex":1**,"uvIndexTime":1542794400,"visibility":15.77,"ozone":318,"temperatureMin":-0.97,"temperatureMinTime":1542837600,"temperatureMax":5.57,"temperatureMaxTime":1542805200,"apparentTemperatureMin":-5.16,"apparentTemperatureMinTime":1542758400,"apparentTemperatureMax":3.28,"apparentTemperatureMaxTime":1542805200},{"time":1542841200,"summary":"Überwiegend bewölkt bis Nachmittag.","icon":"partly-cloudy-day","sunriseTime":1542869071,"sunsetTime":1542900910,"moonPhase":0.47,"precipIntensity":0.0025,"precipIntensityMax":0.0025,"precipIntensityMaxTime":1542852000,"precipProbability":0.08,"precipAccumulation":0.02,"precipType":"snow","temperatureHigh":6.54,"temperatureHighTime":1542891600,"temperatureLow":-1.98,"temperatureLowTime":1542949200,"apparentTemperatureHigh":6.54,"apparentTemperatureHighTime":1542891600,"apparentTemperatureLow":-3.83,"apparentTemperatureLowTime":1542949200,"dewPoint":-1.42,"humidity":0.83,"pressure":1019.79,"windSpeed":1.3,"windGust":1.77,"windGustTime":1542873600,"windBearing":98,"cloudCover":0.47,"uvIndex":1,"uvIndexTime":1542880800,"visibility":16.09,"ozone":313.48,"temperatureMin":-1.79,"temperatureMinTime":1542866400,"temperatureMax":6.54,"temperatureMaxTime":1542891600,"apparentTemperatureMin":-3.78,"apparentTemperatureMinTime":1542866400,"apparentTemperatureMax":6.54,"apparentTemperatureMaxTime":1542891600},{"time":1542927600,"summary":"Nachmittags überwiegend bewölkt.","icon":"partly-cloudy-night","sunriseTime":1542955560,"sunsetTime":1542987255,"moonPhase":0.51,"precipIntensity":0.0025,"precipIntensityMax":0.0025,"precipIntensityMaxTime":1543010400,"precipProbability":0.08,"precipType":"rain","temperatureHigh":8.9,"temperatureHighTime":1542978000,"temperatureLow":2.33,"temperatureLowTime":1543010400,"apparentTemperatureHigh":8.08,"apparentTemperatureHighTime":1542978000,"apparentTemperatureLow":0.47,"apparentTemperatureLowTime":1543010400,"dewPoint":-0.99,"humidity":0.79,"pressure":1019.16,"windSpeed":1.67,"windGust":2.36,"windGustTime":1542985200,"windBearing":93,"cloudCover":0.38,"uvIndex":1,"uvIndexTime":1542967200,"visibility":16.09,"ozone":326.36,"temperatureMin":-1.98,"temperatureMinTime":1542949200,"temperatureMax":8.9,"temperatureMaxTime":1542978000,"apparentTemperatureMin":-3.83,"apparentTemperatureMinTime":1542949200,"apparentTemperatureMax":8.08,"apparentTemperatureMaxTime":1542978000},{"time":1543014000,"summary":"Nebel am Vormittag.","icon":"fog","sunriseTime":1543042048,"sunsetTime":1543073602,"moonPhase":0.54,"precipIntensity":0.0533,"precipIntensityMax":0.254,"precipIntensityMaxTime":1543032000,"precipProbability":0.66,"precipType":"rain","temperatureHigh":7.97,"temperatureHighTime":1543064400,"temperatureLow":0.62,"temperatureLowTime":1543118400,"apparentTemperatureHigh":7.68,"apparentTemperatureHighTime":1543068000,"apparentTemperatureLow":-1.63,"apparentTemperatureLowTime":1543122000,"dewPoint":1.64,"humidity":0.85,"pressure":1016.83,"windSpeed":0.78,"windGust":5.4,"windGustTime":1543060800,"windBearing":195,"cloudCover":0.73,"uvIndex":1,"uvIndexTime":1543053600,"visibility":16.09,"ozone":332.17,"temperatureMin":0.98,"temperatureMinTime":1543096800,"temperatureMax":7.97,"temperatureMaxTime":1543064400,"apparentTemperatureMin":0.79,"apparentTemperatureMinTime":1543014000,"apparentTemperatureMax":7.68,"apparentTemperatureMaxTime":1543068000},{"time":1543100400,"summary":"Nachmittags überwiegend bewölkt.","icon":"partly-cloudy-night","sunriseTime":1543128535,"sunsetTime":1543159952,"moonPhase":0.58,"precipIntensity":0.0025,"precipIntensityMax":0.0051,"precipIntensityMaxTime":1543132800,"precipProbability":0.14,"precipType":"rain","temperatureHigh":7.26,"temperatureHighTime":1543150800,"temperatureLow":1.06,"temperatureLowTime":1543179600,"apparentTemperatureHigh":5.45,"apparentTemperatureHighTime":1543150800,"apparentTemperatureLow":-1.83,"apparentTemperatureLowTime":1543179600,"dewPoint":0.49,"humidity":0.85,"pressure":1012.71,"windSpeed":2.3,"windGust":5.66,"windGustTime":1543168800,"windBearing":88,"cloudCover":0.32,"uvIndex":1,"uvIndexTime":1543140000,"visibility":16.09,"ozone":334.27,"temperatureMin":0.62,"temperatureMinTime":1543118400,"temperatureMax":7.26,"temperatureMaxTime":1543150800,"apparentTemperatureMin":-1.83,"apparentTemperatureMinTime":1543179600,"apparentTemperatureMax":5.45,"apparentTemperatureMaxTime":1543150800},{"time":1543186800,"summary":"Nebel in der Nacht.","icon":"fog","sunriseTime":1543215020,"sunsetTime":1543246304,"moonPhase":0.61,"precipIntensity":0.0889,"precipIntensityMax":0.4623,"precipIntensityMaxTime":1543266000,"precipProbability":0.79,"precipType":"rain","temperatureHigh":6.89,"temperatureHighTime":1543237200,"temperatureLow":3.78,"temperatureLowTime":1543298400,"apparentTemperatureHigh":4.91,"apparentTemperatureHighTime":1543240800,"apparentTemperatureLow":1.06,"apparentTemperatureLowTime":1543298400,"dewPoint":1.22,"humidity":0.83,"pressure":1008.43,"windSpeed":2.22,"windGust":8.86,"windGustTime":1543255200,"windBearing":123,"cloudCover":0.92,"uvIndex":1,"uvIndexTime":1543226400,"visibility":11.2,"ozone":339.11,"temperatureMin":1.61,"temperatureMinTime":1543186800,"temperatureMax":6.89,"temperatureMaxTime":1543237200,"apparentTemperatureMin":-0.94,"apparentTemperatureMinTime":1543186800,"apparentTemperatureMax":4.91,"apparentTemperatureMaxTime":1543240800},{"time":1543273200,"summary":"Regen in der Nacht.","icon":"rain","sunriseTime":1543301504,"sunsetTime":1543332660,"moonPhase":0.65,"precipIntensity":0.0864,"precipIntensityMax":0.4191,"precipIntensityMaxTime":1543356000,"precipProbability":0.94,"precipType":"rain","temperatureHigh":7.42,"temperatureHighTime":1543323600,"temperatureLow":3.31,"temperatureLowTime":1543359600,"apparentTemperatureHigh":5.66,"apparentTemperatureHighTime":1543327200,"apparentTemperatureLow":-0.6,"apparentTemperatureLowTime":1543359600,"dewPoint":2.46,"humidity":0.83,"pressure":1009.28,"windSpeed":2.23,"windGust":12.87,"windGustTime":1543356000,"windBearing":173,"cloudCover":0.96,"uvIndex":1,"uvIndexTime":1543312800,"visibility":15.55,"ozone":332.68,"temperatureMin":3.53,"temperatureMinTime":1543356000,"temperatureMax":7.42,"temperatureMaxTime":1543323600,"apparentTemperatureMin":-0.13,"apparentTemperatureMinTime":1543356000,"apparentTemperatureMax":5.66,"apparentTemperatureMaxTime":1543327200},{"time":1543359600,"summary":"Regen und frische Brise am Vormittag.","icon":"rain","sunriseTime":1543387987,"sunsetTime":1543419017,"moonPhase":0.69,"precipIntensity":0.6579,"precipIntensityMax":1.6002,"precipIntensityMaxTime":1543366800,"precipProbability":1,"precipType":"rain","temperatureHigh":7.46,"temperatureHighTime":1543402800,"temperatureLow":4.56,"temperatureLowTime":1543446000,"apparentTemperatureHigh":4.85,"apparentTemperatureHighTime":1543402800,"apparentTemperatureLow":0.71,"apparentTemperatureLowTime":1543442400,"dewPoint":1.98,"humidity":0.78,"pressure":1007.11,"windSpeed":3.38,"windGust":20.59,"windGustTime":1543392000,"windBearing":181,"cloudCover":0.95,"uvIndex":1,"uvIndexTime":1543399200,"visibility":8.8,"ozone":318.67,"temperatureMin":3.31,"temperatureMinTime":1543359600,"temperatureMax":7.46,"temperatureMaxTime":1543402800,"apparentTemperatureMin":-0.6,"apparentTemperatureMinTime":1543359600,"apparentTemperatureMax":4.85,"apparentTemperatureMaxTime":1543402800}]},"offset":1}

2018-11-21 11:17:52.019 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'station.latitude (latitude)' with value '49.xxxx'

2018-11-21 11:17:52.026 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'station.longitude (longitude)' with value '9.xxxxxx'

2018-11-21 11:17:52.030 [TRACE] [nternal.parser.AbstractWeatherParser] - Property not mapped: 'timezone' with value 'Europe/Berlin'

2018-11-21 11:17:52.034 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'condition.observationTime (currently.time)' with value '1542795471'

2018-11-21 11:17:52.038 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'condition.text (currently.summary)' with value 'Überwiegend bewölkt'

2018-11-21 11:17:52.042 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'condition.icon (currently.icon)' with value 'partly-cloudy-day'

2018-11-21 11:17:52.046 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'precipitation.rain (currently.precipIntensity)' with value '0'

2018-11-21 11:17:52.050 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'precipitation.probability (currently.precipProbability)' with value '0'

2018-11-21 11:17:52.056 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'temperature.current (currently.temperature)' with value '3.03'

2018-11-21 11:17:52.061 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'temperature.feel (currently.apparentTemperature)' with value '-1'

2018-11-21 11:17:52.070 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'temperature.dewpoint (currently.dewPoint)' with value '-0.21'

2018-11-21 11:17:52.076 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'atmosphere.humidity (currently.humidity)' with value '0.79'

2018-11-21 11:17:52.082 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'atmosphere.pressure (currently.pressure)' with value '1014.98'

2018-11-21 11:17:52.087 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'wind.speed (currently.windSpeed)' with value '4.77'

2018-11-21 11:17:52.092 [TRACE] [nternal.parser.AbstractWeatherParser] - Property not mapped: 'currently.windGust' with value '5.45'

2018-11-21 11:17:52.096 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'wind.degree (currently.windBearing)' with value '88'

2018-11-21 11:17:52.100 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'clouds.percent (currently.cloudCover)' with value '0.83'

**2018-11-21 11:17:52.103 [TRACE] [nternal.parser.AbstractWeatherParser] - Property not mapped: 'currently.uvIndex' with value '1'**

2018-11-21 11:17:52.107 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'atmosphere.visibility (currently.visibility)' with value '10.94'

2018-11-21 11:17:52.112 [TRACE] [nternal.parser.AbstractWeatherParser] - Setting property 'atmosphere.ozone (currently.ozone)' with value '321.5'

As the log shows the uv index value was received, but could not be parsed by the binding.

This is a bug I gues. Can you have a look please? What is the problem?

Thank you


(namraccr) #2

Please add code fences to your post.


(namraccr) #3

You should also post your configuration information.


(Luis) #4

Done :wink:


(Luis) #5

What configuration information do you need?

Thank you!