beeminder / BeeSwift

Official Beeminder for iOS app
Other
30 stars 6 forks source link

Mindful Minutes not tallied correctly #284

Open gustavohsouza opened 3 years ago

gustavohsouza commented 3 years ago
### Desiderata
- [ ] Probably snooze this behind general robustification work Theo is doing
- [ ] TBD

Replicata

  1. Create a Beeminder goal
  2. Link your goal to the number of Mindful Minutes you achieve in a given day
  3. Use the iPhone app to automatically send these minutes to Beeminder (so far so good)
  4. Meditate or log some mindful minutes in your iPhone (let's say: 3 mins)
  5. Meditate again in the same day (let's assume another session of 5 mins this time)
  6. Ask the Beeminder app to send this data to Beeminder servers

Expectata

Summed value (8 minutes) gets sent to Beeminder servers.

Resultata

Just one of the sessions (3 minutes or 5 minutes) gets sent.


Circumventata Here's how to send the right values to Beeminder using Automations. Namely, making the right API call summing the duration of all mindful minute sessions that took place in a give day: ![image](https://user-images.githubusercontent.com/19276024/122660194-c73cad80-d155-11eb-8793-07740e6a15b2.png) ![image](https://user-images.githubusercontent.com/19276024/122660195-ca379e00-d155-11eb-816a-616794b79bfa.png) ![image](https://user-images.githubusercontent.com/19276024/122660197-cdcb2500-d155-11eb-8190-8468d03ccc15.png) Gustavo, if your solutions works so flawlessly for you why are you bugging Danny and the team to have it fixed in the app? Being completely honest, in this order: 1. It doesn't work flawlessly because Apple does not allow Shortcuts/Automations to run automatically (yeah...). The user needs to manually authorize it every time. And since I'm many times already laying in bed after I'm done meditating, it just doesn't work for me. 2. Other Beeminder users are experiencing this faulty behavior and I bet most of them won't find my post in the forum, nor will they have the patience to create this automation.

Cognata

Verbata: Apple Health, flaky autodata,

dreeves commented 1 year ago

Not sure if the following should be separate gissues but putting them here for now:

Another user today: "I think something is wonky with the Apple Health integration (for mindful minutes) ... I just manually synced using the Beeminder iOS app, and it didn't do anything. I had to try three or four times to get it to work."

And a different user, about the Sleep metric:

The issue is that the app seems to get stuck with a spinning wheel when I tap the "synch with health" or "sync the last 7 days" buttons. This seemed to start happening when I switched to a new phone last week. Unfortunately, neither the new nor the old phone now sync. Both get stuck. The health app meanwhile updates just fine. I've tried uninstalling, restarting app and phones, disabling the sharing and re-enabling it. It's specifically the sleep goal. The weight and meditation times that are also coming from Health seem to be working just fine. https://www.beeminder.com/andrei_does_it/get_enough_sleep

dreeves commented 9 months ago

Another support thread saying mindful minutes is being overcounted by Beeminder, and user says they only have one device connected to Apple Health.

https://secure.helpscout.net/conversation/2473541703/174009?folderId=2972058