tconnectsync 2.0.8__tar.gz → 2.1.0__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-2.0.8/tconnectsync.egg-info → tconnectsync-2.1.0}/PKG-INFO +1 -1
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/setup.cfg +1 -1
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/eventparser/raw_event.py +1 -1
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/secret.py +1 -0
- tconnectsync-2.1.0/tconnectsync/sync/tandemsource/heroku_helpers.py +17 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0/tconnectsync.egg-info}/PKG-INFO +1 -1
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync.egg-info/SOURCES.txt +2 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/LICENSE.md +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/README.md +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/pyproject.toml +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/setup.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/__init__.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/api/__init__.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/api/android.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/api/common.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/api/controliq.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/api/tandemsource.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/api/webui.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/api/ws2.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/autoupdate.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/check.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/domain/__init__.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/domain/bolus.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/domain/device_settings.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/domain/tandemsource/__init__.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/domain/tandemsource/event_class.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/domain/tandemsource/pump_settings.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/domain/therapy_event.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/domain/utility.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/eventparser/__init__.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/eventparser/build_events.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/eventparser/events.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/eventparser/generic.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/eventparser/static_dicts.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/eventparser/transforms.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/eventparser/utils.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/features.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/nightscout.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/parser/__init__.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/parser/ciq_therapy_events.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/parser/nightscout.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/parser/tconnect.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/process.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/__init__.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/basal.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/bolus.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/cgm.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/iob.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/profile.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/pump_events.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/__init__.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/autoupdate.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/choose_device.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/helpers.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_alarm.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_basal.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_basal_resume.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_basal_suspension.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_bolus.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_cartridge.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_cgm_alert.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_cgm_reading.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_cgm_start_join_stop.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_user_mode.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/update_profiles.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/util/__init__.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/util/cli.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/util/constants.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync.egg-info/dependency_links.txt +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync.egg-info/entry_points.txt +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync.egg-info/requires.txt +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync.egg-info/top_level.txt +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tests/test_autoupdate.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tests/test_process.py +0 -0
- {tconnectsync-2.0.8 → tconnectsync-2.1.0}/tests/test_secret.py +0 -0
|
@@ -38,4 +38,4 @@ class RawEvent:
|
|
|
38
38
|
# but represent the user's time zone setting. So we keep the time
|
|
39
39
|
# referenced on them, but force the timezone to what the user
|
|
40
40
|
# requests via the TZ secret.
|
|
41
|
-
return arrow.get(TANDEM_EPOCH + self.timestampRaw, tzinfo=TIMEZONE_NAME)
|
|
41
|
+
return arrow.get(TANDEM_EPOCH + self.timestampRaw, tzinfo='UTC').replace(tzinfo=TIMEZONE_NAME)
|
|
@@ -54,6 +54,7 @@ if not get('NS_SECRET') and get('API_SECRET'):
|
|
|
54
54
|
NS_SKIP_TLS_VERIFY = get_bool('NS_SKIP_TLS_VERIFY', 'false')
|
|
55
55
|
NS_IGNORE_CONN_ERRORS = get_bool('NS_IGNORE_CONN_ERRORS', 'false')
|
|
56
56
|
|
|
57
|
+
# This should be the timezone your pump is set to.
|
|
57
58
|
TIMEZONE_NAME = get('TIMEZONE_NAME', 'America/New_York')
|
|
58
59
|
|
|
59
60
|
if not get('TIMEZONE_NAME') and get('TZ'):
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from ...features import DEFAULT_FEATURES
|
|
2
|
+
from .choose_device import TandemSourceChooseDevice
|
|
3
|
+
from .process import ProcessTimeRange
|
|
4
|
+
from ... import secret
|
|
5
|
+
|
|
6
|
+
import datetime
|
|
7
|
+
|
|
8
|
+
def run_oneshot(tconnect, nightscout, pretend=False, features=DEFAULT_FEATURES, secret_arg=None, time_start=None, time_end=None):
|
|
9
|
+
if not time_start and not time_end:
|
|
10
|
+
time_end = datetime.datetime.now()
|
|
11
|
+
time_start = time_end - datetime.timedelta(days=1)
|
|
12
|
+
|
|
13
|
+
if not secret_arg:
|
|
14
|
+
secret_arg = secret
|
|
15
|
+
|
|
16
|
+
tconnectDevice = TandemSourceChooseDevice(secret_arg, tconnect).choose()
|
|
17
|
+
return ProcessTimeRange(tconnect, nightscout, tconnectDevice, pretend, features).process(time_start, time_end)
|
|
@@ -48,6 +48,7 @@ setup.py
|
|
|
48
48
|
./tconnectsync/sync/tandemsource/autoupdate.py
|
|
49
49
|
./tconnectsync/sync/tandemsource/choose_device.py
|
|
50
50
|
./tconnectsync/sync/tandemsource/helpers.py
|
|
51
|
+
./tconnectsync/sync/tandemsource/heroku_helpers.py
|
|
51
52
|
./tconnectsync/sync/tandemsource/process.py
|
|
52
53
|
./tconnectsync/sync/tandemsource/process_alarm.py
|
|
53
54
|
./tconnectsync/sync/tandemsource/process_basal.py
|
|
@@ -114,6 +115,7 @@ tconnectsync/sync/tandemsource/__init__.py
|
|
|
114
115
|
tconnectsync/sync/tandemsource/autoupdate.py
|
|
115
116
|
tconnectsync/sync/tandemsource/choose_device.py
|
|
116
117
|
tconnectsync/sync/tandemsource/helpers.py
|
|
118
|
+
tconnectsync/sync/tandemsource/heroku_helpers.py
|
|
117
119
|
tconnectsync/sync/tandemsource/process.py
|
|
118
120
|
tconnectsync/sync/tandemsource/process_alarm.py
|
|
119
121
|
tconnectsync/sync/tandemsource/process_basal.py
|
|
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
|
|
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-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_basal_resume.py
RENAMED
|
File without changes
|
{tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_basal_suspension.py
RENAMED
|
File without changes
|
|
File without changes
|
{tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_cartridge.py
RENAMED
|
File without changes
|
{tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_cgm_alert.py
RENAMED
|
File without changes
|
{tconnectsync-2.0.8 → tconnectsync-2.1.0}/tconnectsync/sync/tandemsource/process_cgm_reading.py
RENAMED
|
File without changes
|
|
File without changes
|
{tconnectsync-2.0.8 → tconnectsync-2.1.0}/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
|