Git Product home page Git Product logo

Comments (5)

pkpio avatar pkpio commented on July 18, 2024

@jonathandmoore , Thanks for the elaborate feedback. I use the same tool to export my data so, I certainly would fix any known issues.

With that said, the sleep issue is actually coming from the Google Fit Web interface - Google Fit takes sleep logging as an activity. The tool here actually tags your Fitbit sleep log perfectly as a Sleep activity - including 3 different levels of sleep within your sleep log.

Google Fit web interface doesn't support adding or tagging an activity as sleep so, my guess is, when it sees any activity that it doesn't support, it shows up as "Walking" - the underlying tags however are correct. You can verify this by noticing that the sleep activities are not contributed to your active time even though they are shown as "Walking".

from fitbit-googlefit.

pkpio avatar pkpio commented on July 18, 2024

"sometimes the activity is listed as lasting 23hr59min and includes the whole day's steps." - if you can give me some more information, I will debug and try to fix this.

I will add a -v option in my next commit.

from fitbit-googlefit.

pkpio avatar pkpio commented on July 18, 2024

@jonathandmoore , I just debugged the "23hr59min" issue. Unfortunately, I don't see any bug in the tool itself. I verified that the start and end times sent to Google Fit API are correct. I will wait a couple of days and see if Google Fit web interface corrects itself.

from fitbit-googlefit.

matt-boyd-pdx avatar matt-boyd-pdx commented on July 18, 2024

@praveendath92, The 23 hr 59 min issue is coming from the conversion from FitBit to Google formats. The sleep data points are in sequenced time stamps (no date). The conversion applies the FitBit date (starting day) to all of the times in the sequence. When the times roll past midnight the conversion keeps the same date instead of rolling forward. I submitted a pull request that addresses the issue.

from fitbit-googlefit.

matt-boyd-pdx avatar matt-boyd-pdx commented on July 18, 2024

One more pull request to fix sleep duration and make Google Fit report sleep duration accurately.

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.