I am trying to get the Weather Binding (OpenWeatherMap) working. I am missing some knowlegde on the subject and hope for assistance.
The binding seems to connect to OpenWeatherMap, log-file shows temperature and humidity updating regularly. I can not get weather to show in Paper UI under “Things” and therefore i am stuck.
My installation:
OpenHab 2 on a RaspberryPi.
What i did:
- Installed Weather Binding 1.10.0 through Add-ons in Paper UI.
- Created Weather.cfg file
- Created weather.item file
Unsure about (a lot):
Should I create at weather thing file? (Basic knowlegde missing here).
Paper UI (Items):
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=xxxx
#apikey.WorldWeatherOnline=
#apikey.Wunderground=
#apikey.Hamweather=
#apikey2.Hamweather=
#apikey.Meteoblue=location configuration, you can specify multiple locations
location.cph.name=Copenhagen, DK
location.cph.latitude=55.675941
location.cph.longitude=12.565530
location.cph.woeid= (required for Yahoo provider)
location.cph.provider=OpenWeatherMap
location.cph.language=en
location.cph.updateInterval=30
location.cph.units=SIlocation..name=
location..latitude= (not required for Yahoo provider)
location..longitude= (not required for Yahoo provider)
location..woeid= (required for Yahoo provider)
location..provider=
location..language=
location..updateInterval=
location..units=
weather.item:
//SYNTAX: itemtype itemname “labeltext” (group1, group2, …) [“tag1”, “tag2”, …] {bindingconfig}
Number OpenWeather_Temperature “Temperatur [%.2f °C]” {weather=“locationId=cph, type=temperature, property=current”}
Number OpenWeather_Humidity “Fugtighed [%d %%]” {weather=“locationId=cph, type=atmosphere, property=humidity”}
Number OpenWeather_Temp_Min “Temperatur min [%.2f °C]” {weather=“locationId=cph, forecast=0, type=temperature, property=min”}
Number OpenWeather_Temp_Max “Temperatur max [%.2f °C]” {weather=“locationId=cph, forecast=0, type=temperature, property=max”}
DateTime OpenWeather_LastUpdate “Sidste opdateret [%1$td.%1$tm.%1$tY %1$tH:%1$tM]” {weather=“locationId=cph, type=condition, property=lastUpdate”}