Commit Graph

1418 Commits

Author SHA1 Message Date
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 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
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 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
Johan Degraeve ec99944bfa removed useless tracing 2023-01-05 23:12:46 +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
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
Paul Vavolas c90cabf198
Update AlertManager.swift
Minor bug in string replacement during translation. Change order of string replacement as "hour" is included in "hours". This affects all language translations
2022-09-10 23:48:11 +02:00
Johan Degraeve 9cf126f6a4 improve loop delay
now the loopdelay feature gives smoothed values per minute readings to loopshare, with the exact delay

before this change, the delay was much bigger than the actual configured delay, and readings came in every 5 minutes, in stead of every minute
2022-09-10 12:06:44 +02:00
Zaremba 9ad5aa3e8a small fix 2022-09-06 20:26:47 +03:00
Zaremba 9d59753bbf small fix 2022-09-06 18:04:38 +03:00
Johan Degraeve dbcbd9d79c version 4.10.5 - build 4180 2022-08-30 22:54:49 +02:00
Johan Degraeve bf4c33b794 Removed NDEF from entitlements
was necessary to fix an issue with upload to app store
more info : https://www.themobileentity.com/home/how-to-fix-ndef-is-disallowed-error-when-uploading-nfc-enabled-app-to-app-store-connect
2022-08-30 22:48:02 +02:00
Johan Degraeve 0b4b88dc5c version 4.10.4 - build 4180 2022-08-29 23:11:11 +02:00
Johan Degraeve 9ba6df7571 Russian translation : ';' was missing 2022-08-29 23:10:50 +02:00
Johan Degraeve fbafb25009 Russian : change "Insulin" text to "Bolus" 2022-08-28 22:20:36 +02:00
Paul Plant f1eedbd63a update "Insulin" string to "Bolus" to avoid confusion between bolus/basal 2022-08-28 15:29:06 +02:00
Paul Plant 551a78a88b treatments filter UI update 2022-08-28 15:21:54 +02:00
Zaremba 28f6ce83a5 alert fix 2022-08-20 13:34:05 +03:00
Zaremba d6c32ff361 fix calibrate 2022-08-19 15:52:40 +03:00
Zaremba e065d0894c small fix 2022-08-19 13:37:43 +03:00
Zaremba dd4d0434df small fix name 2022-08-19 13:21:04 +03:00
Zaremba e72a7c71d1 russian translate 2022-08-19 13:17:46 +03:00
Johan Degraeve b0ce08eeef fix calculation loopdelay 2022-07-27 18:40:21 +02:00
Johan Degraeve 36c2756ca7 suppress share cgm transmitter address with loop
if 'Suppress Loop Share' is enabled.

This is fix is only required if there's multiple instances of xDrip4iOS running on one device and if Loop is used
2022-07-25 23:28:48 +02:00
Johan Degraeve f50dbdbe28 fix Turkish : short for day 2022-07-25 21:47:00 +02:00