creepymonster / GlucoseDirect

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

Suggestion integration Calendar #352

Closed egpall closed 2 years ago

egpall commented 2 years ago

The integration with Calendar seems magic to me, it is wonderful, even in CarPlay it gives me the current values, but I have a suggestion, the highest refresh time is 15 minutes and in Calendar the values for 10 minutes appear so there are 5 minutes in which there is no data, if the times coincided there would be no times in Calendar without values. Could it be done? Thank you

creepymonster commented 2 years ago

I do not know yet if I understand the problem correctly.

The app itself updates the calendar every minute - every minute the calendar entry is updated. So you can always see the latest values on the Apple Watch, for example.

Is there a limit in Car? Or where do the 10/15 minutes come from? And how can I imagine that the gaps arise?

egpall commented 2 years ago

I have said about CarPlay only as a compliment, I add 2 photos where you can see that my calendar assigns 10 minutes to each event and as I refresh the value in GlucoseDirect every 15 minutes there are 5 minutes without values. Why do you create the 10-minute calendar events for me? Have you programmed that time or is it my iPhone? Thank you again

045018BB-3175-43C5-813C-326DAEF70A02 2BCC1223-1116-4CDF-8D41-63B5C5CF8CBB

creepymonster commented 2 years ago

Ah, I see - the 10 minutes displayed there are just the length of the calendar entry. This does not create any gaps.

An entry in the calendar must have a start and end time - I have only selected 10 minutes there. The actual length of the entry has no meaning.

Even if you set the interval to 1 minute, the calendar entries have a length of 10 minutes.

I will adjust it so that the length of the entry corresponds to the interval of the sensor.

egpall commented 2 years ago

Perfect!!!!!! Thank you again

creepymonster commented 2 years ago

I have made the adjustment - with the next update the length of the calendar entry corresponds to the sensor interval.

Many greetings Reimar

egpall commented 2 years ago

Perfect. Thank you very much.

egpall commented 2 years ago

I still have times without values in Calendar, I think it would be fixed if for the 1' interval in Calendar they were 2', for 5' they were 8' and for 15' for example 20'. It's just a suggestion.