creepymonster / GlucoseDirect

App programmed in Swift/SwiftUI for using Libre blood glucose sensors.
MIT License
355 stars 113 forks source link

Apple Watch #570

Open robertherber opened 1 year ago

robertherber commented 1 year ago

Would love to use this standalone on my Apple Watch (using Libre 2). Is it possible?

DAcodedBEAT commented 1 year ago

As of now, if you want to have current glucose levels shown on the watch, you can Export to Apple Calendar and add a calendar watch complication to see the level, as described in https://github.com/creepymonster/GlucoseDirect/discussions/466

It looks like there was some development effort to have a native watch complication from the app directly (https://github.com/creepymonster/GlucoseDirect/pull/506 and https://github.com/creepymonster/GlucoseDirect/pull/508) but it hasn't landed in a development build yet.

robertherber commented 1 year ago

Hi @DAcodedBEAT,

To elaborate: What I'm digging for here is a way to leave the phone at home and just use the Apple Watch by itself. This would require an Apple Watch app that has a direct bluetooth connection to the sensor.

I'm guessing the bluetooth connection implementation could be 99% reused on the watch. Although the initial step (scanning to connect to the sensor) might still have to be done from the phone?

I think using the Calendar might very well be the best way to display it still. If things haven't changed since I last looked at complications are a bit rate limited to preserve battery, while the calendar always updates instantaneously.