Skip to content

alternateal/iosxdripreader

 
 

Repository files navigation

connects to xDrip, G5 and BlueReader

xdrip/xbridge/G5/Bluereader for iOS devices -

  • Alerts
  • Chart
  • Always on notification (not really always but almost always) that allows to see the current value by just lifting up the phone (iOS 10).
  • Upload to Nightscout (works always for G5, for xDrip not recently tested since I don't use G4 anymore, there may be some delay in upload).
  • store values in HealthKit
  • upload to Dexcom share

Alerts

Alerts are configured in the Settings. Possible alerts are

  • High
  • Very High
  • Low
  • Very Low
  • Missed Reading
  • Phone Muted (warns you if your phone is muted)
  • Calibration Request
  • Battery Low

Each Alert requires an Alert Type.

Per Alert Type define

  • enabled or disabled : Example between 8 in the morning and midnight I don't need a low alert. For me the Low alert has a disabled alert type between 8 and midnight. There's always an alert named "No Alert" created by the application which is disabled. You can use that one for all cases where you want a disabled alert type.
  • Name : name of the alert type
  • Vibration enabled yes or no : if yes the device will vibrate when the alert goes off
  • Snooze from notification yes or no : if yes, you can do a quick snooze of an alert from the home screen (why would I say 'no' ? because many times during the night when an alarm goes off, I just snooze it and continue sleeping without doing something about my values - if I have to unlock my device for snoozing then I'm sure I'll be awake)
  • Snooze period (in minutes) : value used when you snooze from the home screen
  • Repeat yes or no : it's an iOS thing, if yes the notification will repeat every minute until you open the notification or snooze it. In any case the alert will go off again 5 minutes later if you haven't snoozed it and if it's still applicable
  • Sound : the sound to use. The phone will not generate any sound if it's in silent mode. At the time of writing there are three options
    • "No Sound" : you will not hear anything
    • "Default iOS Sound" : the sound generated by iOS
    • "xDrip Sound" : it's a copy of the sound generated by the Android version

Next step : the Alerts

For each alert (except 'Always on Notification' and 'Additional Calibration Request'), you can define for each moment of the type which Alert Type needs to be used. For example you could say

  • between 00:00 and 08:00, the Low Value alert needs to use an Alert Type with vibration, with the xDrip sound, without a snooze possibility on the home screen.
  • between 08:00 and 23:59, the Low Value alert only needs to vibrate, no sound, with a possibility to snooze on the Home Screen. In such case you would need two Alert Types, and assign each of them to the correct interval. You can create as many Alert Types and intervals as you want. Alert Types can be re-used for different types of alerts.

To Install the app.

The application is not available on iTunes and must be signed for your device. If you have an Apple Developer Account then you can do this yourself using this tool https://dantheman827.github.io/ios-app-signer/ The ipa file to download is here, take the latest release : https://github.com/JohanDegraeve/iosxdripreader/releases Regulary check for updates. You should enable Healthkit and Push notification in the Apple Developer portal, although push notification is not used anymore in the app. It would probably work also without it.

If you don't have an Apple Developer Account, or you don't succeed in resigning, then send my the UDID of your device in a mail please. (johan.degraeve@gmail.com).

How to find UDID : https://www.innerfence.com/howto/find-iphone-unique-device-identifier-udid

Once you have an IPA signed for UDID, you can install the app. Easist is if you have xCode on a Mac : Connect your iphone to your mac, Select "Window", "Devices", go to "Installed apps", click the + sign, then select the ipa file.

Alternative for Mac is "Apple 2 Configurator". Download from Apple store, install, open, connect device, then "Add", "Apps", "Select from My Mac"

Also working on Mac is http://www.i-funbox.com/en_download.html. Install, connect your iphone and chose "Install App"

On Windows, try http://www.i-funbox.com/en_download.html, I haven't used it myself on PC.

There is also a gitter room https://gitter.im/nightscout/iosxdripreader

To compile (only if you want to develop):

  • install Flash Builder 4.7 with FLex SDK 4.15.0, AIR 22.0 en_US
  • an ios developer membership is required, full explanation : http://help.adobe.com/en_US/flex/mobileapps/WS064a3073e805330f6c6abf312e7545f65e-8000.html
  • clone the repository, lets say folder iosxdripreader
  • purchase license for distriqt Notifications, Dialog, Application, Message, NetworkInfo ane at http://airnativeextensions.com/
  • create a folder named ane under iosxdripreader
  • download the zip package, extract, and copy the file com.distriqt.BluetoothLE.ane to the folder ane
  • on the site of airnativeextensions.com, create an application key, application id = net.johandegraeve.iosxdripreader (you can use another application id if you want, but then change the name also in iosxdripreader-app.xml)
  • create a folder named src/distriqtkey under iosxdripreader
  • create a new class in that package, DistriqtKey.as
  • add a public static const distriqtKey:String = your key from distriqt
  • as explained here http://airnativeextensions.com/knowledgebase/tutorial/1#ios
  • donwload the ios sdk (there should be a zip corresponding to the latest ios version) and put it in a new folder under iosxdripreader
  • and add it in the flash builder project properties (also explained on http://airnativeextensions.com/knowledgebase/tutorial/1#ios)
  • (explained : right click in project, properties, flex build path, native extensions, browse to the ane folder and add the new ane, then go to flex build packaging, ios, native extensions, add the file com.distriqt.BluetoothLE.ane as native extensions, check the "package" check box, also add the Apple iOS SDK that was downloaded
  • in the same way as above, do this also for the Notifications, Dialog, Application, Message, NetworkInfo, AndroidSupport and core ane.
  • it also uses my own ANE : https://github.com/JohanDegraeve/ANE-BackgroundFetch/tree/master/build

About

xdrip/xbridge reader for iOS devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • ActionScript 97.5%
  • AngelScript 2.2%
  • CSS 0.3%