Read the statement by Michael Teeuw here.
Withings
-
I got the withings scale, interested about the module you’re building :)
-
So the Python module I was trying to re-use didn’t work. I suspect Withings have changed their API or something else has changed. Following the steps on their website though, did work and I was able to send a command to retrieve my data.
Now it’s a case of trying to code it up into a module!
-
Hi,
Just upload first version of my module. This is more a proof of concept than a complete functional module, but it works fairly well on my mirror.
Will update and improve it (especially design, if someone could provide me nice icons) and create new post in module section forum.
Module is based on Netatmo module from Christopher Fenner. -
@matt25 What do you put in for the application website when creating the application on the withings site? Seems to be needed later when granting access - and I get a 404 error if I just put some random site mane in there.
-
@frog I personally simply wrote 127.0.0.1 and no problem. Let me know if it is ok so that I can complete the user guide.
-
@matt25
The problem I had was that I was ssh’ing into my mirror - so I tried running the Withings authorisation process on the mirror using Chrome, but I’m now getting a message that 127.0.0.1 can’t be reached. -
@frog Ok sorry. When creating a withings app it is necessary to write something in the application website (127.0.0.1). In the Withings authentification process, do not fill the the ‘callback url’ field. Hope it helps.
-
Ah, OK,
Now a different error.
When I get to Step 3, do I stop there or continue on (I’m getting a Bad Request on step 4)
Also it says in step 2 I should get a URL once I access the user - but I get Access Granted - and another token - no URL.
To be clear about the parameters for the config.js:
oath_consumer key is the key given in the partner app page. under My Keys and called APIKey
oauth_signature is listed right at the bottom in the black box in step 3.
clientID - no idea what that is
oauth_token is taken from the black box in step 3 and is highlighted. There are two copies of it.
Oh, One last request about functionality. It would be great if you could specify in Config.js which readings are actually shown. I only use the scales and so the other stuff is superfluous. I suspect the majority of people would not necessarily have the full set (steps and sleep).
-
Seems that you are not using correct parameters in the Withings authentification process:
-
Step1 : Use API keys and API secret generated during your Withings apps creation.
You get a result URL with oauth_token and oauth_token_secret. -
Step2: Use oath_token and oauth_token_secret generated at step1. This will generate a result URL. Click on it and look at the adress bar, you will get in the URL your userid (6 digits), ‘&userid=xxxxxxx’
-
Step3: use the userid got from step2. you will get an URL result with oauth_signature and oauth_token.
Hope it helps.
Selecting the data you want to display is the next step, that is why currently this is just a basic module and I did not yet published a official release.
-
-
@matt25 Hi,
Thanks, with your pointers, I got through to step 4 and the resultant URL does retrieve data so I know the credentials are working- but putting that into the config.js (all info it looks like you ask for is contained in that request URL), I still get zeros.
I suspect I’m close, but not sure what could be wrong.