vangorra / python_withings_api

Library for the Withings Health API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getting sleep data rr & hr

ssosas opened this issue · comments

Hi,
I'm trying to get all sleep data with the method sleep_get(). I mainly want rr and hr data during the night. I'm using next call:

test_data = self.__api.sleep_get(startdate=arrow.utcnow().shift(days=-1), enddate=arrow.utcnow(), data_fields=GetSleepField )

But no data are retrieved.

If I remove data_fields parameter, I just get sleep levels but rr and hr have "None" values.

Is there any mistake in my call?

Thanks for your support! ;)