I`m displaying few weather items, without any forecast but surprisingly getting this error 401 in log file.
2019-03-23 19:32:20.230 [ERROR] [nal.provider.AbstractWeatherProvider] - OPENWEATHERMAP[home]: Can't retreive weather data: Invalid API key. Please see http://openweathermap.org/faq#error401 for more info.
Error in log file is sending me to provider website and website suggest there could be API key issue but my API is valid. Not really sure why is complaining as I get the requested data all the time without any problems.
Any ideas folks?
My sitemap:
Text item=Condition {
Frame {
Text item=Weather_Humidity Text item=Weather_Pressure
Text item=Condition
Text item=Wind_Speed
Text item=ObservationTime
Text item=Weather_LastUpdate visibility=[Weather_LastUpdate>30] valuecolor=[Weather_LastUpdate>120="orange", Weather_LastUpdate>300="red"]
}
}
One still can use the basic FreePlan items, only the forecast stuff requires a (paid) key.
One can ignore the API-error message in relation to forecast (multiple daily/intervals), as this is caused by code behavior. As long the API key is valid, the actual state (FreePlan) is returned.
I’ve made a pull request to solve the code behavior.
There is a new binding specifically for OWM, with documentation… OpenWeatherMap - Bindings | openHAB. Here’s a Jython script that will create all of the items for you, with a rule that shifts the 3h forecasts around in groups that aggregate the daily forecasts.