I’m trying to setup my Withings scale and can’t figure out how to configure the Withings Binding.
On the wiki page it says the first time the binding is started it should print the following:
Withings Binding needs authentication.
Execute 'withings:startAuthentication “<'accountId>” on OSGi console.
I don’t get this, however. I’m assuming I need to ender the “accountID” in my config file. I’m assuming this is a authentication key I need to get from somewhere:
accountId is an arbitrary key also used in the openhab.cfg
Does anybody know what this account ID is and where I can get it from?
So the user needs to open the shown url in a web browser, login with his withings credentials, confirm that openHAB is allowed to access his data and at the end he is redirected to a page on github. There the user finds the command withings:finishAuthentication "<accountId>" "<verifier>" "<user-id>"with filled parameters that is needed to finish the authentication.
As far as I understand the wiki (I don’t use that binding) you can use for the accountId whatever you want, it is arbitrary. Just create something like U6fx92us.
Then on a console execute withings:startAuthentication U6fx92us and it should give you the url …
No i am not using the binding, because Withings does not support the air quality data in the API. And my weight is use less. it is enough to see it once a day.
Would be great if @ldaniel could help. I don’t know what else to try.
In my openhab.cfg file I have the following:
############################## Withings Binding ###############################$
#
# Data refresh interval in ms (optional, defaults to 60000)
withings:refresh=60000
withings:accountId=U6fgh
In the OSGi console I enter withings:startAuthentication U6fgh
Is this all correct?
I’m assuming I don’t need a withings.cfg although I tried creating one and entered the same information, which didn’t change anything.
unfortunately it issn’t that easy.
The WIKI of the binding tells us it will generate its own config-file, but it doesn’t.
I also watched the code to make my own .cfg and tried nearly everything thinkable.