Git Product home page Git Product logo

Comments (6)

DanHidalz avatar DanHidalz commented on August 17, 2024

I'm not that fond into coding but as I see here in convertors.py:

Convert sleep data point to google fit sleep types

	if data_point['value'] == 1:
		sleepType = 72
	elif data_point['value'] == 2:
		sleepType = 109
	elif data_point['value'] == 3:
		sleepType = 112
	else:
		sleepType = 72

Those states correspond as I have read to 72=sleep, 109=light sleep and 112=awake.

Isn't there a way to convert the fitibit sleep data points to Google Fit sleep types Deep sleep (110), REM sleep (111)?

from fitbit-googlefit.

pkpio avatar pkpio commented on August 17, 2024

@DanHidalz Good point. This was written before Fitbit introduced the REM sleep feature. It should be possible now - assuming Fitbit is including that information in the API response - I think they are.

Will look into this. Thanks 😄

from fitbit-googlefit.

DanHidalz avatar DanHidalz commented on August 17, 2024

I guess they're including it at least that's what I could extract from here:
https://dev.fitbit.com/reference/web-api/sleep/

If this could be included I'm definitely buying one back! Lol. Let me know if you are able to implement it or have news regarding it!

Thanks!!

from fitbit-googlefit.

DanHidalz avatar DanHidalz commented on August 17, 2024

Hi, people! Are there news regarding this? Thanks in advance!

from fitbit-googlefit.

maleadt avatar maleadt commented on August 17, 2024

The https://github.com/Woyken/fitbit-googlefit fork seems to implement this.

from fitbit-googlefit.

DanHidalz avatar DanHidalz commented on August 17, 2024

Thanks a lot @maleadt!

from fitbit-googlefit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.