Hi all,
I am confused. I am trying to add DarkSky API-key into the weather binding in opeHAB 2.2.0. I found that in the past there has been an update to the weather binding to reflect the transition from Forecast.io to Darksky.net. But there is no useful post in this forum that reflects my problems and show how to setup the weather binding for Darksky.
- I am running openHAB 2.2.0 in a docker container on my NAS. Nevertheless I installed the weather binding from the Paper UI … but some minutes later openHAB removes it:
...
2017-11-04 16:39:58.697 [INFO ] [core.karaf.internal.FeatureInstaller] - Uninstalled 'openhab-binding-weather1'
...
- Then I have put the binding configuration in
openhab.cfg
and inweather.cfg
but openHAB ignores my config. There is no entry regarding any weather binding activity inopenhab.log
after changingopenhab.cfg
respectively creatingweather.cfg
.
Here is my openhab.cfg stanza for the weather binding:
################################### Weather Binding ###################################
#
# The apikey for the different weather providers, at least one must be specified
# Note: Hamweather requires two apikeys: client_id=apikey, client_secret=apikey2
weather:apikey.ForecastIo=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
weather:apikey.Darksky=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#weather:apikey.OpenWeatherMap=
#weather:apikey.WorldWeatherOnline=
#weather:apikey.Wunderground=
#weather:apikey.Hamweather=
#weather:apikey2.Hamweather=
# location configuration, you can specify multiple locations
weather:location.witchhill-fio.latitude=aa.bbbb
weather:location.witchhill-fio.longitude=c.dddd
weather:location.witchhill-fio.provider=ForecastIo
weather:location.witchhill-fio.language=de
weather:location.witchhill-fio.updateInterval=10
# location configuration, you can specify multiple locations
weather:location.witchhill-dky.latitude=aa.bbbb
weather:location.witchhill-dky.longitude=c.dddd
weather:location.witchhill-dky.provider=Darksky
weather:location.witchhill-dky.language=de
weather:location.witchhill-dky.updateInterval=10
The weather.cfg looks almost the same:
weather:apikey.ForecastIo=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
weather:apikey.Darksky=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
weather:location.witchhill-fio.latitude=aa.bbbb
weather:location.witchhill-fio.longitude=c.dddd
weather:location.witchhill-fio.provider=ForecastIo
weather:location.witchhill-fio.language=de
weather:location.witchhill-fio.updateInterval=10
weather:location.witchhill-dky.latitude=aa.bbbb
weather:location.witchhill-dky.longitude=c.dddd
weather:location.witchhill-dky.provider=Darksky
weather:location.witchhill-dky.language=de
weather:location.witchhill-dky.updateInterval=10
For testing I have created an items file:
Number FIOtemp "Temperature [%.2f °C]" {weather="locationId=witchhill-fio, type=temperature, property=current"}
Number FIOhumi "Humidity [%d %%]" {weather="locationId=witchhill-fio, type=atmosphere, property=humidity"}
Number FIOpres "Pressure [%d %%]" {weather="locationId=witchhill-fio, type=atmosphere, property=pressure"}
Number DKYtemp "Temperature [%.2f °C]" {weather="locationId=witchhill-dky, type=temperature, property=current"}
Number DKYhumi "Humidity [%d %%]" {weather="locationId=witchhill-dky, type=atmosphere, property=humidity"}
Number DKYpres "Pressure [%d %%]" {weather="locationId=witchhill-dky, type=atmosphere, property=pressure"}
The only thing I get in openhab.log is that the items above are not recongized …
Any idea how to get this working?
Thank you to anyone