Commit Graph

223 Commits

Author SHA1 Message Date
Johan Degraeve 338a53adf1 Speak Reading : remove option to change the rate 2020-04-06 22:14:47 +02:00
Johan Degraeve 0a78b09b7b blucon in new bt 2020-04-06 22:14:30 +02:00
Johan Degraeve 65d4f1af71 fix default rate value in bgreading speaker 2020-04-06 22:12:17 +02:00
Johan Degraeve 733f5d05ef reset function for G5 2020-04-06 22:12:17 +02:00
Johan Degraeve 1aa613c94e still changes related to info screens when bluetooth is not on or not authorized at the moment user starts scanning 2020-04-06 22:12:17 +02:00
Johan Degraeve 3698775472 message shown when starting the scanning 2020-04-06 22:12:17 +02:00
Johan Degraeve 46bd3a8174 MiaoMiao 2020-04-06 22:12:17 +02:00
Johan Degraeve 1dedd35156 bluetoothPeripheralViewController, add line with last connection or disconnection timestamp 2020-04-06 22:11:34 +02:00
Johan Degraeve 8c0fc34910 just some changes in the comments and moving a function around 2020-04-06 22:11:00 +02:00
Johan Degraeve d2c4efda88 removed automatic start scanning 2020-04-06 22:08:18 +02:00
Johan Degraeve 2fb2d11a0e DexcomG5 battery info added 2020-04-06 22:08:18 +02:00
Johan Degraeve 9a39f66761 sort bluetoothperipherals per category 2020-04-06 22:08:18 +02:00
Johan Degraeve 3a91379b39 Bubble
Sort per category
2020-04-06 22:07:19 +02:00
Johan Degraeve ac9354b539 compiles, but can't test yet for G5 as I have no working one, will continue now with bubble 2020-04-06 22:04:30 +02:00
Johan Degraeve d96fd7a5db temp commit 2020-04-06 22:03:53 +02:00
Johan Degraeve 3e8d7839c5 bt redesign, DexcomG5 2020-04-06 21:57:29 +02:00
Paul Plant f3fd1bb326 Many UI changes. Theme, layout, styles, tabBar, icons. Also text corrections. 2020-04-06 21:50:37 +02:00
Johan Degraeve 04c2901205 fix #74 Chart shows a gap after changing bloodglucose unit 2020-02-02 21:35:48 +01:00
Johan Degraeve d055d090b5 resolve merge conflict, and close #65, Fast rise/drop alerts 2020-01-28 23:17:33 +01:00
Johan Degraeve 3e393cde0f checkAlertGroupAndFire, changed order ; first checkAlertAndFireHelper then check issnoozed 2020-01-28 23:10:48 +01:00
Johan Degraeve 956980e28b Mapping function for AlertKind, so that order in UI can be set without changing the order of the cases. Also minor changes related to checkAlert for fast rise/drop. Still needs more testing 2020-01-28 18:11:34 +01:00
Johan Degraeve 105ad2d9e1 enhancement #53 upload sensor age to nightscout 2020-01-26 23:08:48 +01:00
opsb 9363fb4a81 Add fast drop and fast rise alerts 2020-01-26 18:41:25 +01:00
Johan Degraeve 5bb63fd169 Option to write latest glucose value in Calendar event. This allows to make reading visible in Apple Watch.
Following instructions are copied from Spike :
On your Apple Watch or the Watch app in your iOS device select the
"Modular" watch face and make sure you also select the "Calendar Complication" to be present in the middle of the watch face
Your glucose values should now start syncing to your watch when you receive your next reading from your CGM transmitter.
If by any chance you're not getting readings in your Apple Watch, go to the Watch app and under "General", "Reset"
click the "Reset Sync Data" and wait a few minutes.
2020-01-24 21:13:34 +01:00
Johan Degraeve 96c99691dd more tracing added to find problem with some people in follower mode, that no notification is shown 2020-01-19 22:33:06 +01:00
Johan Degraeve fe2b988b7c resolve merge conflicts 2020-01-19 21:24:16 +01:00
Johan Degraeve 2ec60c502f Watlaa connection, master mode (ie watlaa is master) - receives Libre packets and watlaa battery level
This is a test version

To setup Watlaa :
- go to settings tab, select transmitter type Watlaa
- go back to home screen
- click transmitter
- click start sensor and start the sensor
- then go to the bluetooth tab (the second tab)
- click the +
- select watlaa
- select watlaa master
- scan
- click 'done'

xdrip should now receive the libre packets, you should get a calibration request
2020-01-19 14:10:21 +01:00
Johan Degraeve 65213ea728 fix #54 - missed reading alerts goes on and on for ever 2020-01-19 13:46:58 +01:00
Johan Degraeve 1429922bd5 Option to enable NSLog so that all tracing can be found with cfgutil
When enabled, all logging can be viewed on a Mac:
- install Apple Configurator 2 on a Mac (it's not necessary to run the application)
- Open a Terminal session (on Mac click Search button top right, type 'Terminal', double click on the Terminal app)
- change directory to Downloads folder , type :
cd Downloads
- copy paste this :
/Applications/Apple\ Configurator\ 2.app/Contents/MacOS/cfgutil syslog | grep xDrip-NSLog | awk -F "xDrip-NSLog " '{print $2}'  > xdriplog.txt
and press enter

Now use the app, all logging information can be found in the file xdriplog.txt
You can also leave out the redirection to file.
2020-01-18 00:02:58 +01:00
Johan Degraeve 14fe568e65 watlaa master connect working, receives packages 2020-01-09 18:09:11 +01:00
Johan Degraeve 4a95c2c50d connects to watlaa, discovers services and characteristics 2020-01-07 23:13:18 +01:00
Johan Degraeve a6a6e2a20d set upload schedule for Dexcom share 2020-01-02 22:51:44 +01:00
Johan Degraeve 844ac6c979 set upload schedule for nightscout 2020-01-02 22:27:14 +01:00
Johan Degraeve a52fd4d3c1 M5Stack : option to disable wifi 2019-12-28 21:00:35 +01:00
Johan Degraeve 9cb9c3d909 better handling missed reading alerts : snoozing with rescheduling, repeatable 2019-12-26 22:29:16 +01:00
Johan Degraeve edc27ce6cf M5Stack : view battery level and option to switch off 2019-12-23 23:31:25 +01:00
Johan Degraeve b22a74dd64 removed withVolume parameter in playSound, as it's not used, and it doesn't allow to increase the volume above system volume level 2019-12-22 16:53:27 +01:00
Johan Degraeve d6fc94ca5d fixes for M5Stick 2019-12-21 21:11:04 +01:00
Johan Degraeve a0589d0f7a change in bluetoothperipheral screen : when adding new peripheral, option to choose first the category (for the moment only M5Stack but goal is that others will follow), secondly the type of peripheral (eg M5Stack or M5StickC) 2019-12-18 18:42:38 +01:00
Johan Degraeve ceb5e797e8 when app in background, then don't update labels and chart 2019-12-14 15:00:44 +01:00
Johan Degraeve 4b98823021 fix for case where user clickx 'always connect' in bluetoothperipheral view, and if a password was already storted for that peripheral 2019-12-13 22:40:08 +01:00
Johan Degraeve 4248d359e1 redesign M5Stack stuff, as preperation to move all bluetooth stuff to that page 2019-12-11 18:13:31 +01:00
Johan Degraeve 7ae2412449 glucosechartmanager : mainly comments changedé 2019-11-27 16:01:31 +01:00
Johan Degraeve cd8850b2d2 renamed M5StackManaging to BluetoothPeripheralManaging and M5StackManager to BluetoothPeripheralManager 2019-11-26 21:47:58 +01:00
Johan Degraeve 5653de5161 brightness for m5stack 2019-11-25 22:56:54 +01:00
Johan Degraeve c59e101309 fixes compile error, although this compiled previously 2019-11-24 22:03:13 +01:00
Johan Degraeve 1f697eb65b Glucose chart panning 2019-11-24 21:37:39 +01:00
Johan Degraeve 687e03cedf removed unused chart related code 2019-11-15 13:55:36 +01:00
Johan Degraeve 2144d3945e M5Stack : moved M5StackBluetoothDelegate to other folder 2019-11-11 17:57:59 +01:00
Johan Degraeve 154d08ddcb M5Stack : removed disconnect from protocol M5StackManaging, not used 2019-11-11 10:20:11 +01:00
Johan Degraeve 517e108448 M5Stack screen rotation and backgroundcolor 2019-11-07 22:34:40 +01:00
Johan Degraeve 470b830fa9 fix #34 - follower mode were not working if filtered and/or unfiltered are missing or 0 in nightscout 2019-10-30 23:55:09 +01:00
Johan Degraeve 2bbe99f8d8 small fix in log category name 2019-10-30 23:19:53 +01:00
Johan Degraeve 338083a570 minor comment 2019-10-30 17:38:02 +01:00
Johan Degraeve 4c1241b830 removed unused function 2019-10-29 21:58:22 +01:00
Johan Degraeve cb1bdd7a12 readings on chart 2019-10-29 19:08:21 +01:00
Johan Degraeve 1317c54c26 clean up unused code 2019-10-27 20:46:32 +01:00
Johan Degraeve 95870fbdee moved layout related settings to constants 2019-10-27 18:33:16 +01:00
Johan Degraeve c5f9ad6165 temp commit calculation yaxis, will be using another approach in next commit 2019-10-27 14:12:59 +01:00
Johan Degraeve d1c28203a0 xaxisvalue correctly calculated, ending at endDate, starting at startDate 2019-10-27 00:01:13 +02:00
Johan Degraeve 3ac5da95bb chart horizontal axis label format set to 'H', moved it also to userdefaults, but not yet configurable 2019-10-26 21:55:35 +02:00
Johan Degraeve e22b8bcc1a switched startdate and enddate, enddate is always current date 2019-10-26 18:48:15 +02:00
Johan Degraeve 82aa163cc3 just a test version which allows to show three dots when clicking the snooze button 2019-10-26 18:48:15 +02:00
Johan Degraeve 9fd842b75d compiles and shows chart but without content 2019-10-26 18:48:15 +02:00
Johan Degraeve 09349f6912 fix related to error message when authentication failed 2019-10-18 23:04:41 +02:00
Johan Degraeve ac4bee9342 M5stack, fix in uiviewcontrollers, if password reset required, then disconnect permenantly 2019-10-17 00:58:33 +02:00
Johan Degraeve 8ae5b2479e M5Stack, wifi name and password being written successfully to M5stack 2019-10-17 00:32:29 +02:00
Johan Degraeve 7644a92587 M5Stack write nightscout url and token 2019-10-13 22:59:24 +02:00
Johan Degraeve 7bbeb045c3 M5Stack textcolor update now working immediately when changing in xdrip 2019-10-11 00:07:56 +02:00
Johan Degraeve 2059bb1876 temp commit, related to M5Stack settings 2019-10-10 18:07:19 +02:00
Johan Degraeve 79f6c981b3 sending textcolor update to M5Stack 2019-10-09 21:57:36 +02:00
Johan Degraeve a0f62239cb option to select textcolor per m5Stack 2019-10-06 22:11:50 +02:00
Johan Degraeve 5fc96ea44c reverted changes in coredata, need to create a new model version first 2019-10-06 18:08:17 +02:00
Johan Degraeve 3de5f40fc9 Revert "temp commit"
This reverts commit bc745a309d.
2019-10-06 17:57:27 +02:00
Johan Degraeve bc745a309d temp commit 2019-10-06 16:58:05 +02:00
Johan Degraeve 46bf878bfe Scanning for M5Stack transmitters, connect, disconnect, .. 2019-10-05 23:25:39 +02:00
Johan Degraeve 8ba5f328de M5Stack settings screens 2019-09-19 23:54:15 +02:00
Johan Degraeve 3f98a5c3dc Reworked for support oop web, however sitll not used because wrong values are being shown 2019-08-13 23:47:04 +02:00
Johan Degraeve 705fa98b8b all usage of os_log replaced by trace 2019-08-01 23:40:57 +02:00
Johan Degraeve 6490d8df25 Constants.swift splitted in different files 2019-07-28 14:22:47 +02:00
Johan Degraeve 7690914dcc Swift 5 2019-07-26 23:14:08 +02:00
Johan Degraeve f8ed0c5847 cosmetic changes 2019-07-12 22:43:24 +02:00
Johan Degraeve 9e1b9e2825 Dexcom Share fixes 2019-07-06 16:19:48 +02:00
Johan Degraeve eaa0fb5af3 NightScout upload : log the response from NightScout completely in case of error. Initial upload only 8 hours 2019-07-05 23:28:50 +02:00
Johan Degraeve bbdd6f138d Better handling for Dexcom G5 pairing 2019-07-05 23:26:25 +02:00
Johan Degraeve 597e33dd44 Dexcom share 2019-06-30 21:55:56 +02:00
Johan Degraeve a58008699c NightScout upload: remove logging of the NightScout response, small comments changes and improvements 2019-06-23 15:29:50 +02:00
Johan Degraeve 0544a64d58 when selecting alert sound, play it 2019-06-20 23:22:06 +02:00
Johan Degraeve b9207023b4 Speak readings finished 2019-06-18 22:37:59 +02:00
Johan Degraeve 0455768592 SpeakReading progress, for anyone who might try to compile - not yet ready 2019-06-12 22:28:25 +02:00
Johan Degraeve 91f4983af4 fix #4 - was trying to convert Double to Int, crashing on specific type of iPhone/iOS - timestamp in Double format (milliseconds) are now being casted to Int64 2019-06-12 22:27:58 +02:00
Johan Degraeve 5205253a9d fix #3 - crash when switching from Master to Follower and back to Master - not sure however if this solves it 2019-06-12 21:47:41 +02:00
Johan Degraeve debf79e959 2.0.16 update info.plist to support healthkit usage 2019-06-11 22:59:31 +02:00
Johan Degraeve c248ffc78b Version increase and disable speak readings/Dexcom share - this is just to release healthkit 2019-06-11 22:51:41 +02:00
Johan Degraeve a997164740 Healthkit 2019-06-10 18:52:58 +02:00
Johan Degraeve 523b6e3c56 Settings : when changing a setting value, other settings can be enabled/disabled in the settingsview 2019-06-09 23:09:27 +02:00
Johan Degraeve 3d02f4b744 coredatamanager : when terminating save changes with performandwait 2019-06-09 17:54:15 +02:00
Johan Degraeve 8eaa5eb129 follower mode 2019-06-05 23:05:04 +02:00
Johan Degraeve ea9ecca047 fix nightscout upload, unfiltered must be multiplied with 1000 2019-06-02 21:45:39 +02:00
Johan Degraeve a493eefc93 continuation follower mode 2019-05-30 17:59:08 +02:00
Johan Degraeve fabcb5d9cd release upgrade, just for submitting to Apple because they rejected version 2.0.5 2019-05-29 23:50:34 +02:00
Johan Degraeve aed5cf9118 temp commit 2019-05-29 13:49:43 +02:00
Johan Degraeve 10d916c384 attempt to fix G5 : start scanning during init of cgmtransmitter, and transmitter id to uppercase - also initial code for follower mode 2019-05-28 23:41:21 +02:00
Johan Degraeve d71b386e7f reorganizing files for clarity 2019-05-27 12:36:50 +02:00
Johan Degraeve d0b4bc89fa when app is open, update home screen every 15 seconds 2019-05-25 20:56:29 +02:00
Johan Degraeve fc0b025423 ApplicationManager : allows to add closures that need to be run when app comes to background, foreground or terminates. Example when app comes to foreground : stop playing sound 2019-05-25 18:18:45 +02:00
Johan Degraeve db971a0e40 home view labels filled in 2019-05-24 23:50:12 +02:00
Johan Degraeve d0d88584b1 improved handling missed reading alert 2019-05-23 17:43:13 +02:00
Johan Degraeve af0cb2097b if very low alert snoozed, the skip check for low alert, also if high alert snoozed, skip check for high alert 2019-05-22 15:15:45 +02:00
Johan Degraeve 5721b61fbb button on home screen 'Transmitter' which allows to get status, start and stop sensor, scan for transmitter 2019-05-22 12:53:35 +02:00
Johan Degraeve a75c19cdce progress on homeview, calibration and bgreading notification, alerts and alert type settings screens 2019-05-17 23:09:47 +02:00
Johan Degraeve b90efa12ee rootviewcontroller, buttons and labels 2019-05-16 00:13:14 +02:00
Johan Degraeve 1fafbf9ae4 Alert settings 2019-05-14 22:37:36 +02:00
Johan Degraeve 59e96e090c AlertKind and AlertManager : call to AlertKind.alertNeeded doesn't need to return a closure. It can return immediately the result 2019-04-30 23:03:41 +02:00
Johan Degraeve 8aeaab53d9 AlertManager fix, for when user clicks an alert notification, also for when user dismisses a notification 2019-04-29 22:53:01 +02:00
Johan Degraeve 6ea1e90946 Alerts implemented with default values but not fully tested, need to finish now the UI that allows changing alert parameters so they can be changed and better tested 2019-04-28 21:20:27 +02:00
Johan Degraeve 75459ad7ef temp commit, a few alerts, default values, and no snoozing yet 2019-04-23 17:24:05 +02:00
Johan Degraeve 035c991b3c temp commit 2019-04-01 22:29:14 +02:00
Johan Degraeve 3383151a6a opening coredata manager in asynchronous mode 2019-03-26 11:56:57 +01:00
Johan Degraeve 85a0dc4ce4 temp commit 2019-01-26 15:25:43 +01:00
Johan Degraeve ab398f8f28 initial calibration works here 2019-01-12 23:30:16 +01:00
Johan Degraeve f60c7b1e4b progress 2018-12-31 10:32:40 +01:00
Johan Degraeve 5975eb1c21 setting up the core data manager as in cocoacasts.com 2018-12-26 10:37:50 +01:00