I have searched in my event.log and found no way to determine the image being retrieved.
In the openhab log I filter for the term ‘icon’,the local
sunrise 6:02 AM
sunset 8:54 PM
the change from d to n makes no sense see the log entries below:
It looks like the d icon was present until 04:00 AM and then it went to Night
two hours later at 6:0 AM it really is daylight and the icon is wrong again.
2019-01-14 03:58:29.431 [TRACE] [.connection.OpenWeatherMapConnection] - OpenWeatherMap response: status = 200, content = '{"cod":"200","message":0.0046,"cnt":8,"list":[{"dt":1547391600,"main":{"temp":16.74,"temp_min":16.74,"temp_max":17.06,"pressure":1012.18,"sea_level":1016.55,"grnd_level":1012.18,"humidity":95,"temp_kf":-0.32},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"clouds":{"all":32},"wind":{"speed":7.41,"deg":314.503},"rain":{"3h":0.07},"sys":{"pod":"n"},"dt_txt":"2019-01-13 15:00:00"},{"dt":1547402400,"main":{"temp":14.74,"temp_min":14.74,"temp_max":14.98,"pressure":1015.27,"sea_level":1019.36,"grnd_level":1015.27,"humidity":100,"temp_kf":-0.24},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":{"all":76},"wind":{"speed":7.91,"deg":188.503},"rain":{"3h":0.065},"sys":{"pod":"d"},"dt_txt":"2019-01-13 18:00:00"},{"dt":1547413200,"main":{"temp":14.97,"temp_min":14.97,"temp_max":15.13,"pressure":1016.35,"sea_level":10...
2019-01-14 03:58:29.449 [DEBUG] [nWeatherMapWeatherAndForecastHandler] - Update channel 'icon' of group 'current' with new state 'raw type (image/png): 2565 bytes'.
2019-01-14 04:08:31.623 [TRACE] [.connection.OpenWeatherMapConnection] - OpenWeatherMap response: status = 200, content = '{"coord":{"lon":174.82,"lat":-41.23},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"base":"stations","main":{"temp":16,"pressure":1003,"humidity":87,"temp_min":16,"temp_max":16},"visibility":10000,"wind":{"speed":5.7,"deg":20},"clouds":{"all":32},"dt":1547389800,"sys":{"type":1,"id":7358,"message":0.0049,"country":"NZ","sunrise":1547312601,"sunset":1547366093},"id":2186131,"name":"Ngauranga","cod":200}'
any progress on the test jar?
Thanks
Paul