Commit Graph

1809 Commits

Author SHA1 Message Date
Paul Plant a830714ce6 add "warming up until xx:xx" to Dexcom bluetoothPeripheral screen
- set to display "warming up until xx:xx" until 120 minutes after the sensor session was started in the transmitter)
- most Dexcom users know this but it looks useful in the Libre 2 BLE UI, so we can just implement it here too
2023-02-07 19:39:16 +01:00
Paul Plant 49618e59a7 add grey text labels for "mins ago" and delta value units
- nothing special, it just makes it look prettier and matches closer the style of other elements in the UI
- focus should be on the values, not on the whole text string
2023-02-07 19:06:33 +01:00
Paul Plant 295d703be6 removal of ":" from the end of row labels
As the row label and text field have different and consistent formats (bold/colour), it can be implicitly seen that a given label applies to a given field/option so there's no real need to use a colon at the end.

By removing the colon from the string, we can also use them for titles etc without it looking strange

Whilst most labels previously had colons, many were missing which can give the UI a confusing look

Update Main.storyboard
2023-02-03 19:45:44 +00:00
Paul Plant 725fd67ec2 update unit strings from mg/dl to mg/dL and mmol/l to mmol/L
- mg/dl changed to mg/dL
- mmol/l changed to mmol/L

There is some boring info here: https://en.wikipedia.org/wiki/Litre
2023-02-03 18:52:22 +00:00
Paul Plant d2454a918a comments added + refactor for readability
- comments added to the trend slope arrow functions to understand
- in RVC UserDefaults.standard.bloodGlucoseUnitIsMgDl is replaced by mgdl to improve readability
2023-02-03 18:42:11 +00:00
Paul Plant ceb9cccf44 correct sensor countdown visibility logic
- hide the countdown when showClock is enabled and the screen is locked
- show it again if needed when lock screen is disabled
2023-02-02 19:32:19 +00:00
Johan Degraeve 178d800435
Merge pull request #421 from paulplant/develop-staging
Various fixes and changes
2023-02-01 23:10:57 +01:00
Paul Plant 8e3ea1ba1b update Libre 2 "connected" text to include sensor warm-up period notice 2023-02-01 19:42:13 +00:00
Paul Plant 206e567d00 improvements to sensor/transmitter start date rows
- sensor warm-up text added for Libre 2 Direct to make things clearer to the user when a new sensor is added
- Libre 2 Direct and Dexcom G5/6 classes
- pop up dialogs added on rowSelected to show more detailed information as needed
2023-02-01 19:42:13 +00:00
Paul Plant 93806330fe fix BGReadingSpeaker for iOS16
fixes JohanDegraeve/xdripswift#388
2023-01-30 11:43:00 +00:00
Paul Plant 1dace4dbd9 try to improve Libre 1 US E6 ROM Bubble compatibility 2023-01-28 21:25:19 +01:00
Paul Plant 8f98f6d1c2 use nightscout port number if available for missing cases
- use the server port number if available when pulling from /api/v1/entries endpoint
- use the server port number if available to check connection at /api/v1/experiments/test
- fixes JohanDegraeve/xdripswift#400
2023-01-28 21:25:19 +01:00
Paul Plant 7eb822c1a1 add warning to multi-point calibration option 2023-01-28 21:25:19 +01:00
Paul Plant 7bd4f6b671 Update unitized delta string to follow Nightscout formatting 2023-01-28 21:25:19 +01:00
Paul Plant 52ff79bf25 Sensor code dialog change/correction 2023-01-28 21:25:19 +01:00
Paul Plant 62bbdba45b TransmitterBatteryInfo.description changes for .DexcomG5 type 2023-01-28 21:25:19 +01:00
Johan Degraeve a46bd45968
Merge pull request #415 from paulplant/swift-package-dependencies
Transition Cocoapods to Swift Package Dependencies
2023-01-28 17:19:42 +01:00
Paul Plant 2c2992c5af Clear Build Products Path in Build Settings
- to fix red product error
2023-01-28 11:42:11 +01:00
Paul Plant 9cdf22847b Transition Cocoapods to Swift Package Dependencies 2023-01-16 22:42:49 +01:00
Johan Degraeve 4be086a84d force treatments sync re-enabled, was commented out temporary 2023-01-12 21:25:09 +01:00
Johan Degraeve 6f9a7b1978 version 4.11.0 - build 4183 2023-01-10 21:09:45 +01:00
Johan Degraeve 8cc0567880
Merge pull request #413 from paulplant/calendar-event-visual-indicator-squash-final
Calendar event visual indicator option
2023-01-10 20:38:32 +01:00
Paul Plant 96146daaec Calendar event visual indicator option
- calendar event visual indicator (#411)
- will change colour depending on BG value as per main chart objective values for (urgent high, high, low and urgent low)
- option added to show/hide visual indicator in Calendar Event settings
- small changes made to interval label texts

Co-Authored-By: Gary Dalley <4158482+gonkowonko@users.noreply.github.com>
2023-01-10 20:08:17 +01:00
Paul Plant 08508fee1d Update GNSEntryBluetoothPeripheralViewModel.swift
- correct firmWareVersion typo
2023-01-08 11:14:45 +01:00
Paul Plant 21494c3e33 add GitHub repo link to info section in settings
- no translations are needed as the text only says "Github"
2023-01-08 11:13:27 +01:00
Paul Plant 5140734d6f BluetoothPeripheralViewModel label updates 2023-01-08 10:55:26 +01:00
Paul Plant 390a7318f3 enforce a minimum sensor warm-up time before processing new glucose values
- implemented to ensure a minimum time has passed since sensor activation
- especially necessary for Libre sensors (either Libre 2 BLE or Libre through transmitters) that can transmit glucose values immediately after activation. The first 50 minutes can often produce very unreliable values so it's better to just not process anything during this time.
- note that there is no set time after which the sensor values are reliable. Sometimes after 10 minutes, values are good. Sometimes it needs 30 or even 40 minutes.
- warm-up time is therefore initially set to 45 minutes warm-up time but minimumSensorWarmUpRequiredInMinutes can be edited in ConstantsMaster.swift
2023-01-08 10:42:11 +01:00
Paul Plant 2ad21ccfa9 add US Libre 1 E6 ROM compatibility 2023-01-07 21:12:13 +01:00
Paul Plant 1106a87ad6 signing correction (again) 2023-01-07 21:12:01 +01:00
Paul Plant 1735a11778 correct askUser value in BluetoothPeripheralController
- don't ask the user for confirmation when automatically disconnecting the transmitter after a failed NFC scan
- the erroneous true value was left in by error whilst testing
2023-01-07 21:12:01 +01:00
Paul Plant 58185737f8 various UI changes for dates/texts/fields
- change "Follow Dexcom-app" to "Read from Dexcom app" to avoid confusion with Dexcom Follow
- changes to transmitter/sensor display formats to use Nightscout format and improve clarity
- label changes
- typo correction: disclosureAaccessoryView -> disclosureAccessoryView
- simplified sensor status UIAlert and now includes sensor duration (elapsed time since start) and remaining (time until end date)
2023-01-07 21:12:01 +01:00
Paul Plant 3109e01498 limit BG readings to absolute maximum of 600 before processing by RVC 2023-01-07 21:12:01 +01:00
Paul Plant 904778f8d6 signing correction 2023-01-07 21:12:01 +01:00
Johan Degraeve ec99944bfa removed useless tracing 2023-01-05 23:12:46 +01:00
Johan Degraeve b1778a2715
Merge pull request #406 from paulplant/libre2-nfc-rewrite-230104
Libre 2 NFC re-write
2023-01-04 23:13:40 +01:00
Paul Plant 1dac9ccb57 improvement to "notification interval" text 2023-01-04 13:26:59 +01:00
Paul Plant 603db60ff5 Libre 2 NFC re-write
- rewrite of NFC scan workflow
- initial scan of NFC-enabled sensors will now *not* initial BLE scanning
- NFC scan logic redone to perform several loops until a successful NFC scan with valid data is hopefully performed
- UI updated to inform user of scan attempts and give much clearer alert messages.
- haptic feedback (vibrations/noise) added to guide user during scan cycles
- a failed NFC scan will now inform the user and offer to immediately scan again. If the user declines the transmitter will be disconnected (if existing) or removed (if adding new)
- BLE Peripheral view should show correct status in connection row if pending NFC scan to continue
- once a valid NFC scan has been performed, the user will be informed and the superclass will be told to start BLE scanning to find the sensor/transmitter. This will avoid trying to connect before a valid NFC is performed
- the scanned sensor serial number is passed back through the delegate to update the expected device name at the same time as BLE scanning is started. This prevents the app from connecting to a different transmitter (i.e. Libre 2).
- when a Libre 2 sensor is disconnected, the active sensor is set to nil. This prevents the countdown from staying on screen with no valid sensor connected.
- as above but the libre1DerivedParameters are also set to nil to prevent an issue that can show very high readings when initially connecting to a new sensor
- related alert messages changed to improve clarity
- translations added for EN/NL/ES/FR/DE/PT/SV
2023-01-04 13:24:06 +01:00
Johan Degraeve ba90cbc628 after calibration, and if loopdelay, don't send values to loop
For an unexplainable reason, after a calibration, and if loopdelay is used, there's one single wrong value created and sent to Loop.
I couldn't it fix it
but this change suppresses creation of readings for a period of loopdelay + 5.5 minutes
2022-10-23 22:40:50 +02:00
Johan Degraeve ab1b5b9b72 version 4.10.6 - build 4181 2022-10-17 22:38:49 +02:00
Johan Degraeve b0d29ca2ad Merge branch 'fix-385-deleteLocalTreatments' into develop 2022-10-08 22:35:56 +02:00
Johan Degraeve 084b94a045 Fix #274 double readings uploaded to NS
This was only for Libre with smoothing enabled.

sometimes the older values reappear but with a slightly different timestamp
this caused readings being uploaded to NS with just a few seconds difference

Fixed by adding 10 seconds to timeStampLatestNightScoutUploadedBgReading
2022-10-07 23:02:38 +02:00
Johan Degraeve 64bd7f6014 Fix #385 delete treatments that are deleted at NS
This only works for treatments that are deleted within 24 hours after creation

Each time a list of treatments download from NS, there's a check to see if a treatment that was already uploaded previously, is in the list downloaded.
If not then we can assume it's been deleted, and will be marked as deleted also in xDrip4iOS
2022-10-07 17:19:27 +02:00
Johan Degraeve 7c89ba369c
Merge pull request #383 from pvavolas/patch-1
Fix translation issue on AlertManager
2022-10-07 14:38:40 +02:00
Johan Degraeve 0834c5e1de
Merge pull request #389 from pvavolas/develop
Add El (Greek) localizations
2022-10-06 21:53:56 +02:00
Johan Degraeve 68e0eb8ee5
Merge pull request #391 from paulplant/develop
Update minimum G6 Firefly ID from 8G to 8A
2022-10-06 20:49:19 +02:00
Paul Plant 58b202255f Update minimum G6 Firefly ID from 8G to 8A 2022-10-06 16:14:34 +02:00
Pavlos Vavolas b2ec3aec47 Add El (Greek) localizations 2022-10-04 21:24:02 +02:00
Johan Degraeve fecc515b51
Merge pull request #380 from znv569/feature/fixRuTraslate
small fix
2022-09-24 14:51:59 +02:00
Zaremba cbc4ebd3e2 Fix name 2022-09-17 16:13:08 +03:00
Zaremba 0cd4a17202 Merge branch 'develop' 2022-09-17 16:04:49 +03:00