Giter Site home page Giter Site logo

iosxdripreader's Introduction

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

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 easily do this yourself as described here : https://github.com/dabear/iphoneipa-resign The ipa file to download is here, take the latest release : https://github.com/JohanDegraeve/iosxdripreader/releases Regulary check for updates.

If you don't have an Apple Developer Account, and you don't know anybody who can help you with this, you can ask me. Send my the UDID of your device in a mail please. ([email protected]). To retrieve your UDID you must use iTunes (apps don't give you the right UDID). Here you can find an explanation how to find the UDID http://whatsmyudid.com/ . Follow the instructions "iTunes". I'll update the latest release version with a release signed for your device.

Then

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.

Or if you don't have xCode you can use iTunes

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

iosxdripreader's People

Contributors

johandegraeve avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.