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.
- {tconnectsync-3.0.1/tconnectsync.egg-info → tconnectsync-3.0.3}/PKG-INFO +1 -1
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/setup.cfg +1 -1
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/api/tandemsource.py +9 -7
- {tconnectsync-3.0.1 → tconnectsync-3.0.3/tconnectsync.egg-info}/PKG-INFO +1 -1
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/LICENSE.md +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/README.md +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/pyproject.toml +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/setup.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/__init__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/__main__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/api/__init__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/api/common.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/check.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/domain/__init__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/domain/tandemsource/__init__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/domain/tandemsource/event_class.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/domain/tandemsource/pump_settings.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/__init__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/build_events.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/events.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/generic.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/raw_event.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/static_dicts.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/transforms.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/eventparser/utils.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/features.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/nightscout.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/parser/__init__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/parser/nightscout.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/secret.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/__init__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/__init__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/autoupdate.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/choose_device.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/cli_helpers.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/helpers.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/heroku_helpers.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_alarm.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_basal.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_basal_resume.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_basal_suspension.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_bolus.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cartridge.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cgm_alert.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cgm_reading.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cgm_start_join_stop.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_device_status.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_user_mode.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/update_profiles.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/util/__init__.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/util/cli.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/util/constants.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/SOURCES.txt +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/dependency_links.txt +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/entry_points.txt +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/requires.txt +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync.egg-info/top_level.txt +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tests/test_eu_region_integration.py +0 -0
- {tconnectsync-3.0.1 → tconnectsync-3.0.3}/tests/test_nightscout.py +0 -0
- {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.
|
|
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
|
|
@@ -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.
|
|
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:
|
|
623
|
-
|
|
624
|
-
the
|
|
625
|
-
|
|
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
|
-
'
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_basal_resume.py
RENAMED
|
File without changes
|
{tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_basal_suspension.py
RENAMED
|
File without changes
|
|
File without changes
|
{tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cartridge.py
RENAMED
|
File without changes
|
{tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cgm_alert.py
RENAMED
|
File without changes
|
{tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_cgm_reading.py
RENAMED
|
File without changes
|
|
File without changes
|
{tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_device_status.py
RENAMED
|
File without changes
|
{tconnectsync-3.0.1 → tconnectsync-3.0.3}/tconnectsync/sync/tandemsource/process_user_mode.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|