Withings WS-50 Scale Syncer - Temperature & CO2

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.
User avatar
Derik
Posts: 2099
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by Derik » Saturday 29 October 2016 10:35

kick....

dear all..
Does some have the weigt options implement in Domoticz...
The temp and co is nice, only the scale is what i mis..
There is a api..
http://oauth.withings.com/api/doc

Only i do not understand a &^%&^of all that data....

Looks that this nice hardware have more potention in domoticz..
My wife weight rising....
Eveyday a mail to ... you are to,,,,,
when she lost some weight, send a mail, good job love..

Some one?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

Nautilus
Posts: 752
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by Nautilus » Thursday 09 February 2017 22:37

Any idea what changed in the api around 31.1.2017? Now getting just:

Code: Select all

Withings WS-50 Syncer Version 0.4.6

[-] Attaching database /home/pi/domoticz/domoticz.db [version 110]
[-] Authenticating at account.withings.com
HTTP ERROR 500
I'll try to check it but if someone knows already...:)

dynasticorpheus
Posts: 114
Joined: Monday 12 October 2015 15:26
Target OS: Linux
Domoticz version: 2.3295
Location: NL
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by dynasticorpheus » Friday 10 February 2017 0:44

Nautilus wrote:Any idea what changed in the api around 31.1.2017? Now getting just:

Code: Select all

Withings WS-50 Syncer Version 0.4.6

[-] Attaching database /home/pi/domoticz/domoticz.db [version 110]
[-] Authenticating at account.withings.com
HTTP ERROR 500
I'll try to check it but if someone knows already...:)

They implemented protection against cross-site request forgery (CSRF) hence a csrf_token needed to be added to the authentication request. Should be fixed through latest commit dd74fce. Please confirm this is also working on your end.

Nautilus
Posts: 752
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by Nautilus » Friday 10 February 2017 1:49

Indeed it works, thanks a lot! :)

edit: for reference to others, I first ran:

Code: Select all

sudo apt-get install libxml2-dev libxslt-dev python-dev
sudo pip install lxml
Last edited by Nautilus on Friday 10 February 2017 13:31, edited 1 time in total.

dynasticorpheus
Posts: 114
Joined: Monday 12 October 2015 15:26
Target OS: Linux
Domoticz version: 2.3295
Location: NL
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by dynasticorpheus » Friday 10 February 2017 12:48

Nautilus wrote:Indeed it works, thanks a lot! :)

edit: for reference to others, I first run

Code: Select all

sudo apt-get install libxml2-dev libxslt-dev python-dev
sudo pip install lxml
I added a requirements.txt file to repository to clarify the required depandancies ;)

User avatar
Derik
Posts: 2099
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by Derik » Saturday 11 February 2017 12:36

Dear all.

Is there somebody that have the weight working in Domoticz....
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

Nautilus
Posts: 752
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by Nautilus » Saturday 11 February 2017 12:45

Derik wrote:Dear all.

Is there somebody that have the weight working in Domoticz....
I think there was someone here who had a working IFTTT example on how to update the weights. See viewtopic.php?f=38&t=9482&p=74115&hilit ... ttt#p66051

dynasticorpheus
Posts: 114
Joined: Monday 12 October 2015 15:26
Target OS: Linux
Domoticz version: 2.3295
Location: NL
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by dynasticorpheus » Monday 03 July 2017 15:50

Code has been updated and is now working again after Withings became part of the Nokia company.

User avatar
Derik
Posts: 2099
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by Derik » Monday 03 July 2017 15:55

Thanks...

Only is there perhaps a option to read the weight of the scale??
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

Nautilus
Posts: 752
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by Nautilus » Monday 03 July 2017 22:40

dynasticorpheus wrote:Code has been updated and is now working again after Withings became part of the Nokia company.
Works great, thanks! :D

User avatar
felix63
Posts: 145
Joined: Monday 07 December 2015 10:30
Target OS: Raspberry Pi
Domoticz version: 3.8275
Location: Gouda
Contact:

Re: Withings WS-50 Scale Syncer - Temperature & CO2

Post by felix63 » Saturday 21 April 2018 17:48

Hi,

I thought to give it another try. Still not getting any data. Request has been (re)installed. Would you have any other suggestions?
Spoiler: show
pi@viola:~ $ sudo pip install requests --upgrade
Downloading/unpacking requests from https://files.pythonhosted.org/packages ... 193a40a38b
Downloading requests-2.18.4-py2.py3-none-any.whl (88kB): 88kB downloaded
Downloading/unpacking certifi>=2017.4.17 (from requests)
Downloading certifi-2018.4.16-py2.py3-none-any.whl (150kB): 150kB downloaded
Downloading/unpacking idna>=2.5,<2.7 (from requests)
Downloading idna-2.6-py2.py3-none-any.whl (56kB): 56kB downloaded
Downloading/unpacking chardet>=3.0.2,<3.1.0 (from requests)
Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB): 133kB downloaded
Downloading/unpacking urllib3>=1.21.1,<1.23 (from requests)
Downloading urllib3-1.22-py2.py3-none-any.whl (132kB): 132kB downloaded
Installing collected packages: requests, certifi, idna, chardet, urllib3
Found existing installation: requests 2.4.3
Not uninstalling requests at /usr/lib/python2.7/dist-packages, owned by OS
Found existing installation: chardet 2.3.0
Not uninstalling chardet at /usr/lib/python2.7/dist-packages, owned by OS
Found existing installation: urllib3 1.9.1
Not uninstalling urllib3 at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed requests certifi idna chardet urllib3
Cleaning up...
but running the script still yields no results:

Code: Select all

pi@viola:~/domoticz/scripts/python $ ./ws50-sync.py -u xxx@xxx.com -p yyyyyyy -d /home/pi/domoticz/domoticz.db -t 441 -c 440 -l 7 -f -r

Withings WS-50 Syncer Version 0.4.9

[-] Attaching database /home/pi/domoticz/domoticz.db [version 118]
[-] Authenticating at scalews.withings.net
[-] Removing existing data from table METER
[-] Downloading all measurements recorded after 2018-04-14 17:43:47 (7 day limit)
[-] Updating CO2 HOURLY table with 0 measurements [TRUE]
[-] Removing existing data from table MULTIMETER_CALENDAR
[-] Updating CO2 YEARLY table with 0 measurements [TRUE]
[-] Calculating daily MIN, MAX & AVG values
[-] Removing existing data from table TEMPERATURE
[-] Downloading all measurements recorded after 2018-04-14 17:43:47 (7 day limit)
[-] Updating TEMPERATURE HOURLY table with 0 measurements [TRUE]
[-] Removing existing data from table TEMPERATURE_CALENDAR
[-] Updating TEMPERATURE YEARLY table with 0 measurements [TRUE]
[-] Calculating daily MIN, MAX & AVG values
[-] Nothing to commit, closing database

pi@viola:~/domoticz/scripts/python $ 

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests