[SOLVED] Yahoo Weather Binding - OFFLINE - COMMUNICATION_ERROR The Yahoo Weather API is not available for the location

Not quite right. meteoblue has daily forecasts.

@namraccr

Could you please explain, where on this site is the FREE package, Maybe I’ve MISSED it?

You apparently overlooked this.

2 Likes

OK, you’re right. Thanks! :slight_smile:

But the Meteoblue site could also insert “basic-day” and “Meteogram 5 days” into their pricing overview!

Thanks @Celaeno1

I use openhab version 2.3
I will probably try to obtain data from OpenWeatherMap. Just to confirm , should I be using Weather1 binding for this or OpenWeatherMap ?

Paper UI / Binding I can only see weather1 binding which I installed today but no sign of OpenWeatherMap binding.

Please clarify.

Not a real binding, but I’m using Meteograms. In my case the data is from dwd ( Deutscher Wetter Dienst).
When updating every 2 hours, the number of monthly updates is free.

Meteograms could be great addition, it would look good on habpanel but I currently don’t have one yet, just using 5 inch smart phone at the moment.
It looks that I need to request API token for that you need to share your card details :neutral_face:

Payment information is required even if you do not expect to use more than the free quota

I tried this url address in my sitemap and appears to be displaying data for Washington correctly.

Frame label=Meteogram {
    Image url="https://www.yr.no/place/United_States/District_of_Columbia/Washington_D.C_/meteogram.png" label="Meteogram" refresh=3600000
  }

Then tried modifying for example town in England but did not work at all, so probably cant do that this way.

You’d better look into the posted website. The output can be customised to your needs (serviceprovider, updaterate, data provided, presentation,…)

My actual web call looks like:

https://nodeserver.cloud3squared.com/getMeteogram/%7B%22token%22%3A%22MyAPIToken%22%2C%22chartWidth%22%3A%221200%22%2C%22chartHeight%22%3A%22500%22%2C%22place.......

Which gives me:

In other words: pretty shitty weather in here!

The OpenhabWeatherMap binding is part of OH 2.4.0 release or OH Snapshot 2.5.0.

But, you can use OWM or DarkSky with weather1.

Dont worry about weather at your end, it is very simillar in UK at the moment :cloud_with_rain:

Got weather binding installed so will give a go with OWM at the moment as we are still on 2.3.0 openhab here :wink:

Having some issue with this weather binding and OpenWeatherMap.
I searched on forum but can`t find definitive answer.

My weather.cfg

# The apikey for the different weather providers, at least one must be specified
# Note: Hamweather requires two apikeys: client_id=apikey, client_secret=apikey2
#apikey.ForecastIo=
apikey.OpenWeatherMap=deXXXXXXXXXXXXXXXXXXXXXXXX
#apikey.WorldWeatherOnline=
#apikey.Wunderground=
#apikey.Hamweather=
#apikey2.Hamweather=
#apikey.Meteoblue=

# location configuration, you can specify multiple locations
location.WR.name=City
location.WR.latitude=44.625  
location.WR.longitude=13.890
#location.WR.woeid= not req     
location.WR.provider=OpenWeatherMap
location.WR.language=en
location.WR.updateInterval=10
#location.WR.units=

#location.<locationId2>.name=
#location.<locationId2>.latitude=   (not required for Yahoo provider)
#location.<locationId2>.longitude=  (not required for Yahoo provider)
#location.<locationId2>.woeid=      (required for Yahoo provider)
#location.<locationId2>.provider=
#location.<locationId2>.language=
#location.<locationId2>.updateInterval=
#location.<locationId2>.units=

Sitemap

Frame label="Weather" {
                Text item=Temperature2
				Text item=Humidity2
				Text item=Pressure2
				Text item=owmCurrentCondition

Items

/* Weather binding item */
Number Temperature2     "Temperature [%.2f °C]" {weather="locationId=WR, type=temperature, property=current"}
Number Humidity2        "Humidity [%d %%]"      {weather="locationId=WR, type=atmosphere, property=humidity"}
Number Pressure2        "Pressure [%.2f mb]"    {weather="locationId=WR, type=atmosphere, property=pressure"}
String owmCurrentCondition "Current condition [%s]" <sun_clouds> { channel="openweathermap:weather:api:local:current#condition" }

Log file

2019-01-13 19:28:36.109 [WARN ] [eather.internal.common.WeatherConfig] - Incomplete location config for locationId '<locationId1>'. Check openhab.cfg.
2019-01-13 19:28:36.115 [ERROR] [org.apache.felix.configadmin        ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=450, bundle=233/mvn:org.openhab.binding/org.openhab.binding.weather/1.12.0]: Updating property weather of configuration org.openhab.weather caused a problem: Incomplete location config for locationId '<locationId1>'. Check openhab.cfg.
org.osgi.service.cm.ConfigurationException: weather : Incomplete location config for locationId '<locationId1>'. Check openhab.cfg.
	at org.openhab.binding.weather.internal.common.WeatherConfig.parse(WeatherConfig.java:99) [233:org.openhab.binding.weather:1.12.0]
	at org.openhab.binding.weather.internal.bus.WeatherBinding.updated(WeatherBinding.java:82) [233:org.openhab.binding.weather:1.12.0]
	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189) [8:org.apache.felix.configadmin:1.8.16]
	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152) [8:org.apache.felix.configadmin:1.8.16]
	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85) [8:org.apache.felix.configadmin:1.8.16]
	at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1792) [8:org.apache.felix.configadmin:1.8.16]
	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141) [8:org.apache.felix.configadmin:1.8.16]
	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109) [8:org.apache.felix.configadmin:1.8.16]
	at java.lang.Thread.run(Thread.java:748) [?:?]

It looks like is complaining about locationid but I have tried several different location with no difference.

Incomplete location config for locationId '<locationId1>'. Check openhab.cfg.

Any ideas ? I already tried reinstalling weather binding.

Try small letters (not capital) e.g wr or home for locationId.

Full example:

location.wr.name=

and so on…

Changed locationid1 to wr but still doesn`t seems to work. I also tried home aswell. Tried changing latitude and longitude but no luck.
With interval set to 10 it should be pretty quick feedback.

# The apikey for the different weather providers, at least one must be specified
# Note: Hamweather requires two apikeys: client_id=apikey, client_secret=apikey2
#apikey.ForecastIo=
apikey.OpenWeatherMap=deXXXXXXXXXXXXXXXXXXXXXXX
#apikey.WorldWeatherOnline=
#apikey.Wunderground=
#apikey.Hamweather=
#apikey2.Hamweather=
#apikey.Meteoblue=

# location configuration, you can specify multiple locations
location.wr.name=City
location.wr.latitude=47.8011  
location.wr.longitude=13.0448
#location.wr.woeid=     
location.wr.provider=OpenWeatherMap
location.wr.language=en
location.wr.updateInterval=10
#location.wr.units=

#location.<locationId2>.name=
#location.<locationId2>.latitude=   (not required for Yahoo provider)
#location.<locationId2>.longitude=  (not required for Yahoo provider)
#location.<locationId2>.woeid=      (required for Yahoo provider)
#location.<locationId2>.provider=
#location.<locationId2>.language=
#location.<locationId2>.updateInterval=
#location.<locationId2>.units=

Weather%20issue

@andy31

Please also check:

  /var/lib/openhab2/config/org/openhab/weather.config

There should be the identic entries.

Slightly confused where to find

/var/lib/openhab2/config/org/openhab/weather.config

I use openhab vs 2.3.0 on openhabian / RPI3.

RPI3%20files

I normally tweak files inside openHAB-conf.

For logs I need to visit openHAB-share.

Sorry if this is dumb question…

@andy31

System			         Linux				            Linux				            Windows
 ===========================================================================================================
File Location		     Repository Installation		Manual Installation		
openHAB application	     /usr/share/openhab2		    /opt/openhab2			    C:\openHAB2\runtime
Additional add-on files	 /usr/share/openhab2/addons	    /opt/openhab2/addons		C:\openHAB2\addons
Site configuration	     /etc/openhab2			        /opt/openhab2/conf		    C:\openHAB2\conf	
Log files		         /var/log/openhab2		        /opt/openhab2/userdata/logs	C:\openHAB2\userdata\logs
Userdata like rrd4j db 	 /var/lib/openhab2	            /opt/openhab2/userdata		C:\openHAB2\userdata
Backups folder		     /var/lib/openhab2/backups	    /opt/openhab2/backups		(not preconfigured)
Service configuration	 /etc/default/openhab2		    (not preconfigured)		    C:\openHAB2\userdata\etc

I don’t know your samba shares. Above paths are “local paths” on your raspi.

Learning something new everyday. I got it under this location

openhab2org

After opening weather file I can see completely different configs (collection of some settings I tried earlier) which definitely does not match with weather.cfg file I shared earlier.

apikey.OpenWeatherMap="deXXXXXXXXXXXXXXXXXXX"
location.<locationId1>.units="SI"
location.WR.language="en"
location.WR.latitude="47.8011"
location.WR.longitude="13.0448"
location.WR.name="City"
location.WR.provider="OpenWeatherMap"
location.WR.updateInterval="10"
location.myhome.language="en"
location.myhome.latitude="41.576"
location.myhome.longitude="21.570"
location.myhome.name="London,\ GB"
location.myhome.provider="OpenWeatherMap"
location.myhome.units="SI"
location.myhome.updateInterval="15"
location.myhomes.language="en"
location.myhomes.latitude="48.574"
location.myhomes.longitude="14.580"
location.myhomes.name="myhomes"
location.myhomes.provider="OpenWeatherMap"
location.myhomes.updateInterval="1"
service.pid="org.openhab.weather"

Should I correct the content of this file or should this be removed ?

@andy31

You could delete the file weather.config and restart openhab service.

It works now :grinning: Many thanks.

Now just need to add some additional items to expand on my weather widget.

Will set interval frequency to 60 as it should be fast enough.

1 Like

@andy31
Tick the solved mark please. Others maybe find this also helpful. Thanks.