JohanDegraeve / xdripswift

xdrip for iOS, written in Swift
GNU General Public License v3.0
344 stars 343 forks source link

Add feature to select specific time range for BG stats in xDrip4iOS #435

Open ItsLimeNade opened 1 year ago

ItsLimeNade commented 1 year ago

Idea:

Currently, xDrip4iOS only displays statistics for the entire blood glucose graph, but it would be helpful for users to be able to select a specific time range for which they would like to see the statistics. For example, a user may want to only see their average blood glucose levels from 7am-10am.

To address this, I suggest adding a new feature that allows users to select a specific time range for which they want to see the BG stats. This could be done through a time range selector or a simple input field where users can enter the start and end time of the desired range.

Expected behavior:

LiroyvH commented 1 year ago

I like what you wish to achieve, but I'd argue if you want this that it's best to deploy a Nightscout server for yourself (can even run in a local Docker container if you wish) and then use Nightscout Reporter or something similar. Or you can get a Tidepool account and then sync your CGM and/or Apple Health data with it and use that to generate reports. That gives you a.) wayyyy more information and graphics, b.) way more options, c.) the ability to export as PDF. Finally, you could also get the Diabetes Cockpit app and have that analyse your Apple Health and/or Nightscout data and then look at for example the Hourly distribution graph.

Putting this in-app will, imho, cause a lot of clutter for a problem essentially already solved by multiple other solution that are far more powerful; so it kinda feels like a waste of time to start re-inventing the wheel in-app whilst using another tool or app to achieve the same and much more is little effort and readily available to all - plus that's app agnostic rather than limited to xDrip4iOS. :)