Skip to content

awedixon31/iosxdripreader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iosxdripreader

Project in development phase

xdrip/xbridge reader for iOS devices

  • Initial and subsequent Calibration
  • Additional calibration request alerts but not the 12-hour calibration request alert
  • View latest calculated value on Home screen with "minutes ago" and diff with previous reading
  • 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
  • When the app is in the foreground, upload will always happen immediately after receiving a new value, also at app start,
  • When the app is in the background, then there are two mechanisms being used to trigger an upload to NightScout
    • iOS that decides when the app is allowed to do an upload. The frequency depends on the usage of the app. One test I did is to keep the app open all day/night long. The next day/night it was triggerering a background fetch every 10 minutes. If you would keep the app open for example during one night, but not during the day, then the app will do an upload every 10 minutes as of the next night.
    • when a remote notification arrives. The app will subscribe to a service as soon as you launch it. As soon as the first bgreading is received, the app will receive a remote notification the minute after it's supposed to receive a new bgreading. This remote notification opens the app in the background, and allows it to do an upload to NightScout. The upload may have a delay of maximum 1,5 minute. The trigger is actually being sent by another app on a spare iphone on my desk which is always on. There's no guarantee that this app is always alive.
  • set transmitter id
  • if xdrip or xbridge is out of range, bluetooth connection will fail and will not always automatically reconnect. The app needs to be opened in order to re-establish the connection The status of the connection is visible in the always on notification.

To Install the app.

If you need a package for your device, sent my the UDID of your device in a mail please. (johan.degraeve@gmail.com). I'll update the latest release version with a release signed for your device.

Then

Installation is done via itunes on a pc or mac,

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

Stars

Watchers

Forks

Packages

No packages published

Languages

  • ActionScript 99.6%
  • CSS 0.4%