Nightguard
This is an iPhone and Apple Watch application to display blood glucose values stored at your nightscout server.
Description
Disclaimer! Don't use this App for medical decisions. It comes without absolutely no warranty. Use it at your own risk!
Nightguard is an app that displays your blood glucose values from the Nightscout backend.
It is a native iOS App with support for the Apple Watch. Features are:
- Define a range of acceptable blood glucose values.
- Whenever your values are out of range you will be alerted.
- You can snooze the alerts all the time and for a defined time period.
- You can reactivate the alerts all the time.
- You can activate alerts if the values are rising or falling too fast.
- The app displays yesterdays values as an overlay chart. This way you have a hint about how your values could behave in the future.
- Tune your basal rates with the statistics function to overlay different days
For the alarms to work the app has to be active. So you can enable a screen lock that keeps the app running all night long.
Have a look at https://nightscout.github.io for more information about how to setup your own Nightscout backend.
The dark gray region in the chart marks the values that are between 80 and 180.
This small video shows how to check the configuration and demonstrates the available Apple Watch Complication: http://youtu.be/CEcqNyyv_kA
Developer Hints
I had to modify the Eureka SliderRow. If you would like to compile the project of your own, you will have to modify the SliderRow in the following way:
public final class SliderRow: Row<SliderCell>, RowType {
public var steps: UInt = 20
public var shouldHideValue = false
public var lastSelectedValue : Float?
required public init(tag: String?) {
super.init(tag: tag)
}
}
License
nightguard app to display cgm readings on your ios and watchos device
Copyright (C) 2018 Nightguard contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.