Http-binding threws exceptions after updating RASBIAN

using openHABian 1.4 with OH2.3 stable.

Didn’t change anything in my config, but updated the Pi to the newest packages and since then I get the following WARNs and ERRORs:

openhab.log

2018-09-24 08:48:14.322 [DEBUG] [ab.binding.http.internal.HttpBinding] - item 'Weather_Station_Name' is fetched from cache
2018-09-24 08:48:14.329 [WARN ] [ab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.current_observation.observation_location.full)' threw an exception. [response=�      ��(�ͱ�I�O���r�SH-*�/R�ON.-JM��)(J�KJL�N�KQHK�����m��Zl���� ��G   ]
org.openhab.core.transform.TransformationException: Invalid path '$.current_observation.observation_location.full' in '�      ��(�ͱ�I�O���r�SH-*�/R�ON.-JM��)(J�KJL�N�KQHK�����m��Zl���� ��G   '
	at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [215:org.openhab.binding.http:1.12.0]
	at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [194:org.openhab.core.compat1x:2.3.0]
2018-09-24 08:48:14.334 [DEBUG] [ab.binding.http.internal.HttpBinding] - transformed response is '�      ��(�ͱ�I�O���r�SH-*�/R�ON.-JM��)(J�KJL�N�KQHK�����m��Zl���� ��G   '
2018-09-24 08:48:14.340 [DEBUG] [ab.binding.http.internal.HttpBinding] - item 'Weather_TempFeels' is fetched from cache
2018-09-24 08:48:14.346 [TRACE] [ab.binding.http.internal.HttpBinding] - Couldn't find matching binding provider [itemName=Weather_Station_Name, command=CHANGED]
2018-09-24 08:48:14.350 [WARN ] [ab.binding.http.internal.HttpBinding] - Transformation 'JSONPATH($.current_observation.feelslike_c)' threw an exception. [response=�      ��(�ͱ�I�O���r�SH-*�/R�ON.-JM��)(J�KJL�N�KQHK�����m��Zl���� ��G   ]
org.openhab.core.transform.TransformationException: Invalid path '$.current_observation.feelslike_c' in '�      ��(�ͱ�I�O���r�SH-*�/R�ON.-JM��)(J�KJL�N�KQHK�����m��Zl���� ��G   '
	at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:67) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:194) [215:org.openhab.binding.http:1.12.0]
	at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [194:org.openhab.core.compat1x:2.3.0]
2018-09-24 08:48:14.355 [DEBUG] [ab.binding.http.internal.HttpBinding] - transformed response is '�      ��(�ͱ�I�O���r�SH-*�/R�ON.-JM��)(J�KJL�N�KQHK�����m��Zl���� ��G   '
2018-09-24 08:48:14.359 [DEBUG] [ab.binding.http.internal.HttpBinding] - Couldn't create state for item 'Weather_TempFeels' from string '�      ��(�ͱ�I�O���r�SH-*�/R�ON.-JM��)(J�KJL�N�KQHK�����m��Zl���� ��G   '
2018-09-24 08:48:14.363 [DEBUG] [ab.binding.http.internal.HttpBinding] - item 'Weather_Precip_TextDayTitle' is fetched from cache

restarting OH2 daemon doesn’t change anything. I guess, it has something to do with encodings of some kind?

http.cfg

WetterRossbuehel_conditions.url=http://api.wunderground.com/api/<<APIKEY>>/conditions/forecast/lang:DL/q/45.2273930,14.9235310.json
WetterRossbuehel_conditions.updateInterval=4500000

items like described here: Comprehensive Wunderground using HTTP Binding Example

Is there anything I miss?

##        Release = Raspbian GNU/Linux 9 (stretch)
##        Kernel = Linux 4.14.52-v7+

You are not the first one
It looks like it’s the Wunderground api response that’s mangled:

So it’s not my system’s config (probably) :slight_smile:

1 Like

hmm… a curl on the http-cfg URL on Wunderground returns the correct JSON…?

ok. everything’s back to normal for now… In between I once got an 500 error while Curling the WU API.
So I guess, it was indeed a glitch in the WU-API…

what about your Icons, @NCO?

there’s still some glitches - at least for the last 30mins there’s that same errors again.
didn’t get one error again using curl

Thanks for the update.

Right now they are messed up again, but I won’t put any more effort in it, because the WU API will be discontibued soon.
So I will choose another source for my weather (for irrigation and sun shading of rollershutters) soon.

oh. Didn’t know that. I read, that they don’t give out API-keys anymore, but do they plan to shut it down completely? They worked on their ecosystem as many personal weather stations upload their data…

btw, I also checked out Weather Unlocked but in my experience their data isn’t that much reliable.

That’s what I heard:

1 Like

I will be monitoring the accuracy of this new source
As the weather is changing quite a bit at the moment it should be too long to confirm
Apparently though, the API is only changing every hour on the free plan

For personal use this should be enough. and also 8day forecasts instead of 15 is ok for free! :wink:
plus (and that was why I checked it), they offer snowreports for various skiing areas in the alps! (which also sometimes lag behind or even switch back to older versions as I experienced this winter - but as there was more than enough snow, it didn’t matter if it was 75cm oder 90cm of snow…)


found it also buried somewhere on their site. Seems quite a bunch of PWS users are pissed they put data to WU for years and will be cut off also (they promise some nebulous “We’re working on something”, but it doesn’t seem to find traction)

That would be perfect for my case.

only drawback is, there’s no “weather description” as it is in WU-API. It was fun to get the current weather read out in the morning… :wink:
also there’s no translation, but only english names for the conditions…

That’s true :slight_smile:
How about Yahoo?

last time I checked the API came with less Information as WU (or Weather Unlocked). but also no translation, don’t they?

You might be right.
I did not check it out yet, but will do soon (I guess) :wink: