Closed mboremski closed 6 years ago
It appears your withings.cfg contains the key "consumerKey".
Try replacing it with "consumerkey".
ty, I also thought about that and tried everything thinkable. I watched the code around this error-message and did not come further.
Even an empty withings.cfg or detelting this file gives same error-message
Also the binding should generate its own .cfg (like its said in the wiki) or there should be a working example in the WIKI.
An empty withings.cfg could not produce the same error message.
When you think you have an empty withings.cfg, you're probably running from a cached copy of the config that still has the erroneous keys.
And the binding will never generate its own .cfg file.
could you give me a hint where i have to search for this chashed copy? Yesterday I searched for files containing withings in filename and found some data in "/var/lib/openhab2/config/org/openhab". Deleting those files didn't change anything.
Cached data shows up under either userdata/cache
or userdata/etc
.
I can't find anything about the withings-oauth.cfg in the Documentation.
I figured this out, at least for OpenHAB 2.4.0 M8 and Withings binding 1.13.0.201812120952
I found this page: https://github.com/openhab/openhab1-addons/wiki/withings-binding
It says " Furthermore: if there were no values stored into openhab.cfg yet the Binding itself saves it's configuration into the file services/withings-oauth.cfg
" - which none of the other readmes does.
So I moved all the config from services/withings.cfg to services/withings-oauth.cfg and things suddenly worked fine. (Or at least I got passed the auth - haven't checked for any real data yet.)
Guess it means the docs should be changed.
Hope it helps.
/P
Binding throws the following exeption:
Expected Behavior
After trowing "org.openhab.binding.withings-1.10.0.jar" to the addons-folder this binding should setup itself.
Possible Solution / Context
That gives the same error-messages
To change the OAuth parameters for the Withings binding the user can specify the following values in the services/withings.cfg: The OAuth configuration must be stored in the file services/withings-oauth.cfg
Environment
[DEBUG] log of start / stop