tconnectsync 3.0.1__tar.gz → 3.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. {tconnectsync-3.0.1/tconnectsync.egg-info → tconnectsync-3.0.3}/PKG-INFO +1 -1
  2. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/setup.cfg +1 -1
  3. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/api/tandemsource.py +9 -7
  4. {tconnectsync-3.0.1 → tconnectsync-3.0.3/tconnectsync.egg-info}/PKG-INFO +1 -1
  5. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/LICENSE.md +0 -0
  6. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/README.md +0 -0
  7. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/pyproject.toml +0 -0
  8. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/setup.py +0 -0
  9. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/__init__.py +0 -0
  10. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/__main__.py +0 -0
  11. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/api/__init__.py +0 -0
  12. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/api/common.py +0 -0
  13. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/check.py +0 -0
  14. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/domain/__init__.py +0 -0
  15. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/domain/tandemsource/__init__.py +0 -0
  16. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/domain/tandemsource/event_class.py +0 -0
  17. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/domain/tandemsource/pump_settings.py +0 -0
  18. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/__init__.py +0 -0
  19. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/build_events.py +0 -0
  20. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/events.py +0 -0
  21. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/generic.py +0 -0
  22. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/raw_event.py +0 -0
  23. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/static_dicts.py +0 -0
  24. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/transforms.py +0 -0
  25. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/utils.py +0 -0
  26. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/features.py +0 -0
  27. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/nightscout.py +0 -0
  28. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/parser/__init__.py +0 -0
  29. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/parser/nightscout.py +0 -0
  30. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/secret.py +0 -0
  31. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/__init__.py +0 -0
  32. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/__init__.py +0 -0
  33. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/autoupdate.py +0 -0
  34. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/choose_device.py +0 -0
  35. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/cli_helpers.py +0 -0
  36. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/helpers.py +0 -0
  37. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/heroku_helpers.py +0 -0
  38. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process.py +0 -0
  39. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_alarm.py +0 -0
  40. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_basal.py +0 -0
  41. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_basal_resume.py +0 -0
  42. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_basal_suspension.py +0 -0
  43. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_bolus.py +0 -0
  44. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cartridge.py +0 -0
  45. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cgm_alert.py +0 -0
  46. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cgm_reading.py +0 -0
  47. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cgm_start_join_stop.py +0 -0
  48. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_device_status.py +0 -0
  49. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_user_mode.py +0 -0
  50. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/update_profiles.py +0 -0
  51. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/util/__init__.py +0 -0
  52. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/util/cli.py +0 -0
  53. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/util/constants.py +0 -0
  54. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/SOURCES.txt +0 -0
  55. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/dependency_links.txt +0 -0
  56. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/entry_points.txt +0 -0
  57. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/requires.txt +0 -0
  58. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/top_level.txt +0 -0
  59. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tests/test_eu_region_integration.py +0 -0
  60. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tests/test_nightscout.py +0 -0
  61. {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tests/test_secret.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tconnectsync
3
- Version: 3.0.1
3
+ Version: 3.0.3
4
4
  Summary: Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2 and Tandem Mobi
5
5
  Home-page: https://github.com/jwoglom/tconnectsync
6
6
  Author: James Woglom
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = tconnectsync
3
- version = 3.0.1
3
+ version = 3.0.3
4
4
  author = James Woglom
5
5
  author_email = j@wogloms.net
6
6
  description = Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2 and Tandem Mobi
@@ -608,8 +608,8 @@ class TandemSourceApi:
608
608
  return self.get('api/reports/bff/pumper/%s' % (self.pumperId), {})
609
609
 
610
610
  # Matches the Tandem Source web app's getLogIDList() (55 IDs) as observed in
611
- # the live GET api/reports/bff/pump-logs request. Includes FSL3 ids 477/480/486.
612
- DEFAULT_EVENT_IDS: List[int] = [229,5,28,4,26,99,279,3,16,59,21,55,20,280,64,65,66,61,33,371,171,369,460,172,370,461,372,480,399,256,213,406,477,394,212,404,214,405,486,447,313,60,14,6,90,230,140,12,11,53,13,63,203,307,191]
611
+ # the live GET api/reports/bff/pump-logs request.
612
+ DEFAULT_EVENT_IDS: List[int] = [229,5,28,4,26,562,563,566,99,279,3,16,59,21,55,20,280,64,65,66,61,33,371,171,369,460,172,370,461,372,480,399,256,213,406,477,394,212,404,214,405,486,447,313,60,14,69,57,6,90,230,140,12,11,53,559,558,565,564,13,63,203,307,191]
613
613
 
614
614
  def get_pump_logs(self, device_id: str, min_date: Optional[str] = None, max_date: Optional[str] = None, event_ids_filter: Optional[List[int]] = DEFAULT_EVENT_IDS) -> PumpLogsResponse:
615
615
  """Fetch pre-decoded pump events for a single date window from the BFF
@@ -619,10 +619,12 @@ class TandemSourceApi:
619
619
  The server caps the window at ~4 weeks; callers needing a longer range
620
620
  must page by date window (see pump_events).
621
621
 
622
- Note: the server currently ignores eventIds and returns every event in
623
- the window regardless of the filter (verified against live accounts), so
624
- the effective filtering happens client-side via EventClass dispatch. We
625
- still send eventIds to mirror the web app and stay forward-compatible."""
622
+ Note: as of ~2026-10, the server rejects an unrecognized eventIds key
623
+ with HTTP 400 (ZodError) -- it was renamed to eventCodes (see #163).
624
+ Historically the server ignored this filter and returned every event
625
+ in the window regardless, so the effective filtering happens
626
+ client-side via EventClass dispatch. We still send eventCodes to
627
+ mirror the web app and stay forward-compatible."""
626
628
  minDate = parse_ymd_date(min_date)
627
629
  maxDate = parse_ymd_date(max_date)
628
630
  logger.debug(f'get_pump_logs({device_id}, {minDate}, {maxDate})')
@@ -631,7 +633,7 @@ class TandemSourceApi:
631
633
  'pumperId': self.pumperId,
632
634
  'startDate': '%sT00:00:00Z' % minDate,
633
635
  'endDate': '%sT23:59:59Z' % maxDate,
634
- 'eventIds': ','.join(map(str, event_ids_filter)) if event_ids_filter else '',
636
+ 'eventCodes': ','.join(map(str, event_ids_filter)) if event_ids_filter else '',
635
637
  })
636
638
  return self.get('api/reports/bff/pump-logs/%s?%s' % (device_id, query), {})
637
639
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tconnectsync
3
- Version: 3.0.1
3
+ Version: 3.0.3
4
4
  Summary: Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2 and Tandem Mobi
5
5
  Home-page: https://github.com/jwoglom/tconnectsync
6
6
  Author: James Woglom
File without changes
File without changes
File without changes