iOS and WatchOS Client for the Nightscout CGM System
Go to file
Dirk Hermanns d0a3668354 Fixed Notification problem 2024-01-15 21:26:57 +01:00
fastlane Added fastlane automatic release 2024-01-10 22:09:11 +01:00
images shrinked images 2020-09-09 20:59:11 +02:00
nightguard Fixed Notification problem 2024-01-15 21:26:57 +01:00
nightguard Complication Fixed complication localization 2024-01-10 21:40:20 +01:00
nightguard WatchKit App Fixed Notification problem 2024-01-15 21:26:57 +01:00
nightguard Widget Extension Fixed complication localization 2024-01-10 21:40:20 +01:00
nightguard.xcodeproj Fixed Notification problem 2024-01-15 21:26:57 +01:00
nightguard.xcworkspace fix toUTCMillis 2023-12-06 13:16:13 +01:00
nightguardTests Fixed Notification problem 2024-01-15 21:26:57 +01:00
nightguardUITests Fixed Notification problem 2024-01-15 21:26:57 +01:00
.gitignore Replaced unwrapping with guards to prevent app crashes 2021-03-21 19:56:51 +01:00
Gemfile Fixed a UI Warning regarding a dynamic font size. Added localized Strings for the 'disable all Alarms' feature. 2020-06-27 18:16:32 +02:00
Gemfile.lock Fixed Notification problem 2024-01-15 21:26:57 +01:00
LICENSE Add LICENSE file (AGPLv3) 2018-06-19 15:37:15 +02:00
PRIVACY.md Added a privacy policy 2018-11-07 21:34:06 +01:00
Podfile Fixed the Podfile and added some Developer hints 2023-11-30 19:55:57 +01:00
Podfile.lock Fixed a cocoapods problem by adding -f to the sh buildfile 2023-12-02 20:48:31 +01:00
README.md Added a Developer Hint to disable critical entitlements. 2023-12-04 21:03:44 +01:00
fastlaneAll.sh Added new Screenshots from the watch. Removed old ones. 2020-09-09 20:42:20 +02:00
fastlaneRelease.sh Small script to automate the app release 2020-05-10 21:55:51 +02:00
fastlaneScreenshots.sh Hardcoded the UITest URI. Small script to execute the screenshots 2020-04-23 21:30:44 +02:00
nightguard ComplicationExtension.entitlements Added the AppGroup Capability to the new complication widgetkit extension. Complication should get updates now. 2023-04-07 19:22:20 +02:00
nightguard Widget ExtensionExtension.entitlements #198: Lockscreen Widget and new optimized Watch complications 2022-09-18 19:43:52 +02:00
nightguard.xctestplan fix toUTCMillis 2023-12-06 13:16:13 +01:00
nightguardNotification.apns V3.1.0 Changes 2020-10-07 06:39:50 +02:00

README.md

Join the chat at https://gitter.im/nightscout/nightguard

Nightguard

Join the chat at https://gitter.im/nightscout/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.

Nightguard App

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

First install cocoapods and do a

pod install

afterwards.

Then simply open the Nightguard folder "nightguard" in xcode. If no scheme "nightguard" is existing, select "new Scheme" from the "Product|Scheme" Menu.

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)
    }
}

Now you should be able to launch the app in the simulator. Happy Coding!

Uploading the app

If you would like to run a local compiled version, you might wan't to disable the critical notification entitlement. This can be done in File nightguard/scoutwatch.entitlements by changing the value to false:

    <key>com.apple.developer.usernotifications.critical-alerts</key>
    <false/>

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/>.