using the PaperUI I did set up an Account with the OpenWeatherMap Binding and it worked flawlessly until about 3 weeks ago.
Now the “OpenWeatherMapAccount” is marked offline in the PaperUI -> Things.
I checked the api-key, re-inserted it, checked the api-key with the account on openweathermap.org and the key works on a Browser call like “https://api.openweathermap.org/data/2.5/forecast?lat=50…&lon=6…&lang=se&cnt=5&mode=json&units=metric&APPID=50…”.
I uninstalled the binding and reinstalled it, with or without reboot in between - it is still - offline!
If the account is offline my problems can’t come from faulty items/sitemap/rules definitions, right?
I run Openhab v2.5.3-1 as a Raspbian-build on a Raspi 2 B.
I don’t know if it could be the reason, but you know that you have to have at least two things. One for the account and another one for the information
Thanks a lot!
That worked for me. (own.things)
I am still wondering why the PaperUI is not working, but nonetheless more important to me is that it works again!
I can even change the Bridge to the one from “own.things” in my preexisting “Local weather and forecast”, so my sitemaps and rules work again.
Thank you!
Maybe it was the combination between Bridge/Thing/Item-Channel.
If you create a new Bridge “openweathermap”(Account) via PaperUI there will be always another (random) ThingID created. That means your Weather-Thing also have to be changed an of course the Channel-Definition of your items.
Now in the textual Description you have a static ThingID (api) and your Weather-thing has therfore the "ThingUID “weather-and-forecast” (weather-api:api) has the Id “local”. So your item-channel becomes
“openweathermap:weather-and-forecast:api:local”, and thats an easy change.
This is how I understand it, but it’s no professional explanation.
One tip from my side for your item-configuration. Try to create your item-names in a logic seqence as mine. It would help you if you are working with rules, lmbdas, aggregations,etc.
Cheers,
Peter