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

Inaccurate time asleep #259

Open
krugerk opened this issue Feb 9, 2021 · 5 comments
Open

Inaccurate time asleep #259

krugerk opened this issue Feb 9, 2021 · 5 comments
Labels
BUG Opposite of feature HealthKit HealthKit integration UVI Will count as a User-Visible Improvement
Milestone

Comments

@krugerk
Copy link
Contributor

krugerk commented Feb 9, 2021

A user has reported that Beeminder iOS app (5.8 and later with 5.9) produced inaccurate sleep durations. The duration listed in Apple Health is closer to what the user expected. The datapoint in Beeminder seems to be double the amount.

Perhaps it is worth noting that in this case there are multiple sources providing 'time asleep' data to Apple Health. Furthermore, the app is installed on multiple iOS apps and HealthKit integration is enabled on both.

We've even seen an instance of the Apple Health sleep metric feeding Beeminder more than 24 hours of sleep on one day!

Cognata

Verbata: autodata maintenance, apple health integration, autodata accuracy, autodata fetches,

@krugerk krugerk added BUG Opposite of feature HealthKit HealthKit integration labels Feb 9, 2021
@krugerk
Copy link
Contributor Author

krugerk commented Feb 9, 2021

'Time asleep' according to Apple Health:
image

--
as shown in the Web App:
image

--
As shown in the app:
image

@krugerk
Copy link
Contributor Author

krugerk commented Feb 10, 2021

I also see the datapoint comment shows auto-updated and not just auto-entered.
Is the app creating a datapoint on one device the adding to that on the other device? That is, that the error is inter app combining one app's reading of HealthKit data with the existing value already in the goal (created by the same app on another device)?

@krugerk
Copy link
Contributor Author

krugerk commented Feb 10, 2021

A workaround for now might be for the user to deny Beeminder iOS access to sleep data on one of the two installations. The Health data itself is synced across iCloud connected devices so the same data should be available on each device.

@theospears theospears added this to the 6.3 milestone Oct 14, 2022
@dreeves dreeves added the UVI Will count as a User-Visible Improvement label Dec 14, 2023
@dreeves
Copy link
Member

dreeves commented Oct 8, 2024

This week we have a user in support saying that the numbers for the "time in bed" metric they see in Apple Health don't match what shows up in Beeminder. Eg, 4 hours in Beeminder, just under 8 hours in the Health app.

https://secure.helpscout.net/conversation/2719893023/197692?folderId=2972058

@theospears
Copy link
Collaborator

theospears commented Oct 9, 2024

For ticket hygiene purposes, I note the original issue this ticket was about (beeminder massively overcounting time in bed with multiple data sources) should have been fixed for a while now.

For reported user issues I would confirm:

  1. Device timezone matches beeminder timezone
  2. Goal deadline is set to a time that's in the middle of their waking hours (e.g. noon)

But in general to diagnose these issues we probably need to build something which can create a diagnostic dump of the data beeminder sees from Apple Health.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Opposite of feature HealthKit HealthKit integration UVI Will count as a User-Visible Improvement
Projects
None yet
Development

No branches or pull requests

3 participants