Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Calorie Data Returned by getDailyCalorieSamples #366

Open
BharathMarla932 opened this issue Jul 24, 2024 · 0 comments
Open

Incorrect Calorie Data Returned by getDailyCalorieSamples #366

BharathMarla932 opened this issue Jul 24, 2024 · 0 comments

Comments

@BharathMarla932
Copy link

The getDailyCalorieSamples method is returning incorrect calorie data for the current day. The value returned by the method is significantly lower than the value displayed in the Google Fit app.

Here is my code :

const opt = {
startDate: "2024-07-24T00:00:00.000Z",
endDate: new Date().toISOString(),
bucketUnit: BucketUnit.DAY,
};

GoogleFit.getDailyCalorieSamples(opt)
.then((res) => {
console.log(res);
})
.catch((error) => {
console.error('Error retrieving calorie samples:', error);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant