dynasticorpheus wrote:The first version of the script is now available via github, let me know if it also works for you guys. Be smart and make a backup of your DB before doing anything else first!
As we are writing to the DB directly note that any issues from this should not be addressed to the domoticz devs!
There is a
--noaction option which allows for a dry-run to confirm if everything works as expected before doing any actual update to the DB. I would also recommend to do the initial update (potentially a lot of data hence blocking the DB for other writes) whilst domoticz is not running.
https://github.com/dynasticorpheus/ws50-sync
Code: Select all
Withings WS-50 Syncer by [email protected]
optional arguments:
-h, --help show this help message and exit
-u USERNAME, --username USERNAME
username (email) in use with account.withings.com
-p PASSWORD, --password PASSWORD
password in use with account.withings.com
-c CO2, --co2 CO2 co2 idx
-t TEMPERATURE, --temperature TEMPERATURE
temperature idx
-d DATABASE, --database DATABASE
fully qualified name of database-file
-n, --noaction do not update database
Hi!
Thanks!!!
I'm trying to get it to work.
This is the output, is this normal?
DISKSTATION> /volume2/homes/admin/DomoticzScripts/ws50-sync.py -u ********* -p ********** -c 103 -t 104 -d /volume2/@appstore/domoticz/var/domoticz.db -n
Withings WS-50 Syncer Version 0.2.0
[-] Database /volume2/@appstore/domoticz/var/domoticz.db
[-] Authenticating at account.withings.com
[-] Downloading data newer than 2016-02-05 22:35:00
[-] Updating database with 0 CO2 measurements [FALSE]
[-] Updating database with 0 TEMPERATURE measurements [FALSE]
This was the first run with --noaction. Is it safe to run without -n? Sorry im kinda new
And what do you mean with the initial update?
Thanks for your work!