Commit graph

15160 commits

Author SHA1 Message Date
jbr7rr c2e1017d73 Moved sequence counter to BLEComm 2023-05-25 14:53:53 +02:00
jbr7rr 3027c2ffa5 Initial bolus implementation, further connection improvements 2023-05-25 13:32:24 +02:00
jbr7rr a9ebdcfe68 Connection improvements, TBR sync improved 2023-05-23 10:20:22 +02:00
jbr7rr 0d8f07ad0a Initial TBR implementation and pumpSync for basals etc 2023-05-20 20:40:55 +02:00
jbr7rr 61e873dbcc Deactivation, better connection flow 2023-04-15 15:23:26 +02:00
jbr7rr fff833dae3 Patch activation flow 2023-04-11 15:43:29 +02:00
jbr7rr af6445a3dc NotificationPacket 2023-03-28 19:26:58 +02:00
jbr7rr cafdd6cf8f Implement GetRecordPacket (initial) 2023-03-25 16:55:06 +01:00
jbr7rr db409f5b7f Packet implementation 2023-03-24 19:50:19 +01:00
jbr7rr 90392b2452 Packet classes 2023-03-24 19:50:19 +01:00
jbr7rr 7afa0beb0a Prepare patch step WIP 2023-03-24 19:50:19 +01:00
jbr7rr 8f6dfbdf88 Overview fragment based on eopatch layout 2023-03-24 19:50:19 +01:00
jbr7rr 43515f7b17 Buttons in overview 2023-03-24 19:50:19 +01:00
jbr7rr 485826682e Implemented state to initialize pump connection 2023-03-24 19:50:19 +01:00
jbr7rr 27159d6e47 Review comments 2023-03-24 19:39:23 +01:00
jbr7rr ed100a4eb0 BLEComm: Added callbacks to enable handling of notifications in calling class 2023-03-24 19:39:23 +01:00
jbr7rr f31f6c1649 Proper handling of setCharacteristicNotification 2023-03-24 19:39:23 +01:00
jbr7rr baa4376f68 Added MedtrumService 2023-03-24 19:38:48 +01:00
jbr7rr b635ad26d8 Initial Medtrum BLEComm 2023-03-24 19:38:48 +01:00
jbr7rr 37a6fa9220 Added Medtrum pump type etc 2023-03-24 19:38:48 +01:00
jbr7rr 18be54f489 Empty plugin 2023-03-24 19:38:48 +01:00
Milos Kozak 1920bc7ce5
New Crowdin updates (#2465)
* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Czech)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Slovak)

* New translations strings.xml (Hebrew)
2023-03-23 10:32:05 +01:00
Milos Kozak 6df6e978a9
Merge pull request #2470 from nightscout/dependabot/gradle/dev/androidx.fragment-fragment-ktx-1.5.6
chore(deps): bump androidx.fragment:fragment-ktx from 1.5.5 to 1.5.6
2023-03-23 10:31:26 +01:00
Milos Kozak 35fe73f08c
Merge pull request #2468 from nightscout/dependabot/gradle/dev/work_version-2.8.1
chore(deps): bump work_version from 2.8.0 to 2.8.1
2023-03-23 10:31:02 +01:00
Milos Kozak 3fd6657ea8
Merge pull request #2469 from nightscout/dependabot/gradle/dev/room_version-2.5.1
chore(deps): bump room_version from 2.5.0 to 2.5.1
2023-03-23 10:30:48 +01:00
dependabot[bot] 5388db068d
chore(deps): bump androidx.fragment:fragment-ktx from 1.5.5 to 1.5.6
Bumps androidx.fragment:fragment-ktx from 1.5.5 to 1.5.6.

---
updated-dependencies:
- dependency-name: androidx.fragment:fragment-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 08:58:04 +00:00
dependabot[bot] 0e24624cf6
chore(deps): bump room_version from 2.5.0 to 2.5.1
Bumps `room_version` from 2.5.0 to 2.5.1.

Updates `androidx.room:room-compiler` from 2.5.0 to 2.5.1

Updates `androidx.room:room-ktx` from 2.5.0 to 2.5.1

Updates `androidx.room:room-runtime` from 2.5.0 to 2.5.1

Updates `androidx.room:room-rxjava3` from 2.5.0 to 2.5.1

Updates `androidx.room:room-testing` from 2.5.0 to 2.5.1

---
updated-dependencies:
- dependency-name: androidx.room:room-compiler
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.room:room-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.room:room-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.room:room-rxjava3
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.room:room-testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 08:57:40 +00:00
dependabot[bot] 16a5b27414
chore(deps): bump work_version from 2.8.0 to 2.8.1
Bumps `work_version` from 2.8.0 to 2.8.1.

Updates `androidx.work:work-runtime-ktx` from 2.8.0 to 2.8.1

Updates `androidx.work:work-testing` from 2.8.0 to 2.8.1

---
updated-dependencies:
- dependency-name: androidx.work:work-runtime-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.work:work-testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 08:57:29 +00:00
Milos Kozak 8ce12d61c0 Xdrip: prevent NPE 2023-03-22 22:09:43 +01:00
Milos Kozak 75d34955b7 fix displaying in non default languages 2023-03-21 18:38:49 +01:00
Milos Kozak cf69dcf423 NSCv3: get missing data upon WS connection 2023-03-21 17:02:02 +01:00
Milos Kozak f5d2f739a9 NSCv3: allow missing eventType 2023-03-21 15:18:54 +01:00
Milos Kozak 438f384c67 lints 2023-03-16 18:36:47 +01:00
Milos Kozak 53c13684ea EOPATCH2: fix NS carbs sync 2023-03-16 18:29:53 +01:00
Milos Kozak 294f3cb789
Merge pull request #2457 from dv1/combov2-fixes-001
combov2: Fixes for the refresh button, unsafe casts, crashes due to Bluetooth, improved warning screen handling, and additional language support
2023-03-13 22:21:45 +01:00
Carlos Rafael Giani 9979331ef0 comboctl-parser: Fix typo in E2BatteryEmptyErrorScreenParsing test
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-13 21:46:31 +01:00
Milos Kozak 6e223dd5f4
New Crowdin updates (#2456)
* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations alert_descriptions.xml (Lithuanian)

* New translations exam.xml (Bulgarian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations objectives.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)
2023-03-13 21:32:18 +01:00
Milos Kozak 89b5e9851c
Merge pull request #2458 from miyeongkim/dev
fix divide by zero
2023-03-13 21:29:55 +01:00
miyeongkim eaa32355cd
Merge branch 'nightscout:dev' into dev 2023-03-13 11:25:58 +09:00
miyeongkim 804ee6e898 fix "ArithmeticException: divide by zero" 2023-03-13 11:24:06 +09:00
Carlos Rafael Giani bec7a4aa97 combov2: Replace unsafe casts 2023-03-12 22:40:54 +01:00
Carlos Rafael Giani cc4cd2dc04 comboctl-parser: Don't try to interpret text in error screens
That text shows contents that are different to that of warning screens.
Instead of extending the interpretation logic to cover such contents as
well, just use a generic ERROR_TEXT AlertScreenState. That text won't
be interpreted by any program logic anyway, since error screens are
never dismissed automatically.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-12 22:40:54 +01:00
Carlos Rafael Giani 377188353a combov2: Show UI notifications and toaster messages when BT is not enabled 2023-03-12 22:40:54 +01:00
Carlos Rafael Giani 6d998c8081 combov2: Catch exceptions thrown when the adapter is disabled / unavailable 2023-03-11 19:00:25 +01:00
Carlos Rafael Giani c1058ad113 comboctl-android: Check that the adapter is available and enabled
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani 13666fd549 combov2: Document and extend runWithPermissionCheck utility function 2023-03-11 19:00:25 +01:00
Carlos Rafael Giani 72819cbc53 comboctl-base: Add exceptions for disabled and missing Bluetooth adapters
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani fe1235dbe1 combov2: Wait for coroutines to finish in onStop() 2023-03-11 19:00:25 +01:00
Carlos Rafael Giani 2cdc4c45ea comboctl-parser: Add Lithuanian support
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani 3f3884e513 comboctl-parser: Handle percent symbol in some TBR percentage screens
Some TBR percentage screens like the Lithuanian one show a % symbol
right after the text. Add an optional symbol parser to handle it.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00