我一直在用Fitbit Python package来分析我的数据。当我查看我的运动数据时,它似乎非常有效:
fitbit_stats = authd_client._COLLECTION_RESOURCE('activities', date='2015-09-16')
但是,当我尝试获取我的心率数据时,它会运行,但除了0外不返回任何内容:
^{pr2}${'heart': [], 'average': [{'tracker': 'Resting Heart Rate', 'heartRate': 0}, {'tracker': 'Normal Heart Rate', 'heartRate': 0}, {'tracker': 'Exertive Heart Rate', 'heartRate': 0}]}
有人知道我为什么不在这里返回任何数据吗?在
下面的方法会有用,但我不确定这是否是您要找的
我猜你想要一天中的约会(像我一样)
根据https://dev.fitbit.com/docs/heart-rate/#get-heart-rate-intraday-time-series
我在fitbit api包中添加了一个自定义函数:
^{pr2}$它将返回的数据如下所示:
相关问题 更多 >
编程相关推荐