OH2 astro and weather binding ERROR in logs

Hello,

does anybody know what does mean this warn ? OH2

2016-11-09 10:19:42.891 [ERROR] [nal.provider.AbstractWeatherProvider] - WUNDERGROUND: api.wunderground.com
2016-11-09 10:19:42.902 [ERROR] [eather.internal.scheduler.WeatherJob] - api.wunderground.com
java.net.UnknownHostException: api.wunderground.com
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)[:1.8.0_65]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.8.0_65]
        at java.net.Socket.connect(Socket.java:589)[:1.8.0_65]
        at java.net.Socket.connect(Socket.java:538)[:1.8.0_65]
        at java.net.Socket.<init>(Socket.java:434)[:1.8.0_65]
        at java.net.Socket.<init>(Socket.java:286)[:1.8.0_65]
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)[60:org.apache.servicemix.bundle$
        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)[60:org.apache.servicemix.bundl$
        at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)[60:org.apache.servicemix.bundles.commons-httpclient:3.1.0.7]
        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)[60:org.apach$
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)[60:org.apache.servicemix.bundles.commons-httpclient:3.1$
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)[60:org.apache.servicemix.bundles.commons-httpclient:3.1.0.$
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)[60:org.apache.servicemix.bundles.commons-httpclient:3.1.0.7]
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)[60:org.apache.servicemix.bundles.commons-httpclient:3.1.0.7]
        at org.openhab.binding.weather.internal.provider.AbstractWeatherProvider.executeRequest(AbstractWeatherProvider.java:113)[197:org.openhab.binding.weather$
        at org.openhab.binding.weather.internal.provider.AbstractWeatherProvider.getWeather(AbstractWeatherProvider.java:68)[197:org.openhab.binding.weather:1.9.$
        at org.openhab.binding.weather.internal.scheduler.WeatherJob.execute(WeatherJob.java:49)[197:org.openhab.binding.weather:1.9.0.201611020212]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[104:org.eclipse.smarthome.core.scheduler:0.9.0.201610312128]
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[104:org.eclipse.smarthome.core.scheduler:0.9.0.201610312128]
2016-11-09 10:19:43.114 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2016-11-09 10:24:42.808 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2016-11-09 10:24:43.004 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2016-11-09 10:29:42.861 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2016-11-09 10:29:43.046 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates

and only on start system i have:

i link chennels in PAPER UI in configuration -> things

2016-11-08 13:48:02.542 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occured while informing handler:Channel with ID 'rise#start' does not exists.

.items
part of astro and weather

DateTime Sunrise_Time  "Wschód [%1$tH:%1$tM]"  {channel="astro:sun:home:rise#start"}
DateTime Sunset_Time   "Zachód [%1$tH:%1$tM]"   {channel="astro:sun:home:set#start"}

String   Sezon      "Sezon [MAP(season.map):%s]"              {channel="astro:sun:home:season#name"}
DateTime Wiosna     "Wiosna [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"  {channel="astro:sun:home:season#spring"}
DateTime Lato       "Lato [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"  {channel="astro:sun:home:season#summer"}
DateTime Jesien     "Jesień [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"  {channel="astro:sun:home:season#autumn"}
DateTime Zima       "Zima [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"  {channel="astro:sun:home:season#winter"}

Number   Temp_zew      "Temperatura zewnętrzna [%.1f °C]"       {weather="locationId=domek, type=temperature, property=current"}
Number   Temp_jutro    "Temperatura jutrzejsza [%.1f °C]"       {weather="locationId=domek, forecast=1, type=temperature, property=max"}
Number   Temp_Feel        "Temperatura zewnętrzna odczuwalna [%.1f °C]"  {weather="locationId=domek, type=temperature, property=feel"}
Number   Temp_Dewpoint    "Punkt rosy [%.1f °C]"          {weather="locationId=domek, type=temperature, property=dewpoint"}
Number   Rain          "Opady deszczu [%.2f mm/h]"   {weather="locationId=domek, type=precipitation, property=rain"}
Number   Precip_Probability0   "Opady [%d %%]"   {weather="locationId=domek,forecast=0, type=precipitation, property=probability"}
Number   Precip_Probability1   "Opady [%d %%]"   {weather="locationId=domek,forecast=1, type=precipitation, property=probability"}
Number   Precip_Probability2   "Opady [%d %%]"   {weather="locationId=domek,forecast=2, type=precipitation, property=probability"}
Number   Snow          "Opady śniegu [%.2f mm/h]"   {weather="locationId=domek, type=precipitation, property=snow"}
Number   Humidity         "Zachmurzenie [%d %%]"      {weather="locationId=domek, type=atmosphere, property=humidity"}
Number   Visibility       "Widzialność [%.1f km]"  {weather="locationId=domek, type=atmosphere, property=visibility"}
Number   Pressure         "Ciśnienie [%.1f mb]"    {weather="locationId=domek, type=atmosphere, property=pressure"}
Number   UV_Index         "UV Index"              {weather="locationId=domek, type=atmosphere, property=uvIndex, scale=0"}
DateTime LastUpdate       "Ostatni odczyt [%1$tH:%1$tM %1$td.%1$tm.%1$tY]"        {weather="locationId=domek, forecast=0, type=condition, property=observationTime"}
DateTime LastUpdate1       "Ostatni odczyt [%1$tH:%1$tM %1$td.%1$tm.%1$tY]"        {weather="locationId=domek, forecast=1, type=condition, property=observationTime"}
DateTime LastUpdate2       "Ostatni odczyt [%1$tH:%1$tM %1$td.%1$tm.%1$tY]"        {weather="locationId=domek, forecast=2, type=condition, property=observationTime"}
Number   Wind_Speed           "Prędkość wiatru [%.1f km/h]"    {weather="locationId=domek, type=wind, property=speed"}


The first error looks like it cannot find api-wundergound.com in the DNS query. Can you ping that host?

Can’t help with the second error.

Yes, i can:

pi@raspberrypi:/opt/openhab2/conf/rules $ ping api.wunderground.com
PING e2040.g.akamaiedge.net (104.96.133.209) 56(84) bytes of data.
64 bytes from a104-96-133-209.deploy.static.akamaitechnologies.com (104.96.133.209): icmp_seq=1 ttl=56 time=52.9 ms
64 bytes from a104-96-133-209.deploy.static.akamaitechnologies.com (104.96.133.209): icmp_seq=2 ttl=56 time=52.2 ms
64 bytes from a104-96-133-209.deploy.static.akamaitechnologies.com (104.96.133.209): icmp_seq=3 ttl=56 time=52.3 ms
64 bytes from a104-96-133-209.deploy.static.akamaitechnologies.com (104.96.133.209): icmp_seq=4 ttl=56 time=52.2 ms
64 bytes from a104-96-133-209.deploy.static.akamaitechnologies.com (104.96.133.209): icmp_seq=5 ttl=56 time=52.3 ms
^C
--- e2040.g.akamaiedge.net ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 52.259/52.452/52.975/0.336 ms
pi@raspberrypi:/opt/openhab2/conf/rules $

second error in not very important because is only on start system

I’ve no further ideas. I use HTTP and XSLT binding for weather.

I will not to change binding for weather, it working with this error but without them log file will be clearly :slight_smile:
First error disepear i do not know why but second still is on the start maeby disepear too for some time :slight_smile:
Definition on channel is fine because it was copy from PAPER UI.

channel="astro:sun:home:season#winter"

Hi there

I have since 3 or 4 days the same problem.
Sometimes api.wunderground.com UnknownHostException and a lot
[WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates

But it still works.

Best regards
Ossy

Anyone has suggestions how to eliminate these messages. My rules work with OH2 astro but these messages are a nuisance.

2017-03-03 04:28:18.701 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:29:18.693 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:30:18.715 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:31:18.718 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:32:18.707 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:33:18.710 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:34:18.718 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:35:18.718 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:36:18.705 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:37:18.708 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:38:18.701 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:39:18.716 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:40:18.732 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:41:18.706 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:42:18.706 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:43:18.748 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:44:18.714 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates
2017-03-03 04:45:18.692 [WARN ] [ding.astro.handler.AstroThingHandler] - The Astro-Binding is a read-only binding and can not handle channel updates

So I’ve isolated the warning messages to the astro sun home statement in my thing file. I’ve commented it out and it stops but then I loose astro related data. Am I’m doing something wrong?

astro:sun:home [ geolocation=“33.9534655,-118.128089”, interval=60 ]

I’m still trying to debug and I’m wondering what is the difference between astro:sun:home vs astro:sun:local. My what I know, astro:sun:local is discovered in things while astro:sun:home is entered manually in things. Do I need both of them?

I guess you should have either autoconfigured or manually entered, not both

I agree. So I removed the astro:sun:local but I still have two entries for Sunset_Time: one local and one home. Still trying to figure out how to remove the astro:sun:local:night#start entry. it is not listed in any of my configuration files. I think I need to clear the cache but not sure where?

openhab> smarthome:links
TVUN60ES7150_ProgramTitle -> samsungtv:tv:0d1cef00_00dc_1000_a28a_1c5a3ecb143d:programTitle
Sunset_Time -> astro:sun:local:night#start
YamahaReceiverCRXN560_Power -> samsungtv:tv:0d1cef00_00dc_1000_a28a_1c5a3ecb143d:power
wemo_socket_Socket_1_0_221631K0101622_state -> wemo:socket:Socket-1_0-221631K0101622:state
TVUN60ES7150_SourceName -> samsungtv:tv:0d1cef00_00dc_1000_a28a_1c5a3ecb143d:sourceName
TVUN60ES7150_KeyCode -> samsungtv:tv:0d1cef00_00dc_1000_a28a_1c5a3ecb143d:keyCode
YamahaReceiverCRXN560_Power -> yamahareceiver:yamahaAV:5f9ec1b3_ed59_1900_4530_00a0de1b0fff:power
LocalTime_Date -> ntp:ntp:local:string
Weather_Temperature -> yahooweather:weather:downey:temperature
Sun_Elevation -> astro:sun:home:position#elevation
Sun_Azimuth -> astro:sun:home:position#azimuth
Sunrise_Time -> astro:sun:home:rise#start
Sunset_Time -> astro:sun:home:set#start
Moon_Elevation -> astro:moon:home:position#elevation
Moon_Azimuth -> astro:moon:home:position#azimuth
Moon_Phase -> astro:moon:home:phase#name

Okay, I believe I got this resolved. I logged into the console and reviewed the smarthome entries. The smarthome:links showed I had “Sunset_Time -> astro:sun:local:night#start” which I was unable to remove via the GUI. So I entered smarthome:links clear and it remove that entry. I rebooted and voila no more errors on the astro thing.