tconnectsync 2.3.0__tar.gz → 2.3.1__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 (70) hide show
  1. {tconnectsync-2.3.0/tconnectsync.egg-info → tconnectsync-2.3.1}/PKG-INFO +1 -1
  2. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/setup.cfg +1 -1
  3. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/__init__.py +1 -1
  4. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/autoupdate.py +4 -1
  5. {tconnectsync-2.3.0 → tconnectsync-2.3.1/tconnectsync.egg-info}/PKG-INFO +1 -1
  6. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/LICENSE.md +0 -0
  7. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/README.md +0 -0
  8. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/pyproject.toml +0 -0
  9. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/setup.py +0 -0
  10. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/__main__.py +0 -0
  11. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/api/__init__.py +0 -0
  12. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/api/android.py +0 -0
  13. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/api/common.py +0 -0
  14. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/api/controliq.py +0 -0
  15. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/api/tandemsource.py +0 -0
  16. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/api/webui.py +0 -0
  17. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/api/ws2.py +0 -0
  18. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/check.py +0 -0
  19. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/domain/__init__.py +0 -0
  20. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/domain/bolus.py +0 -0
  21. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/domain/device_settings.py +0 -0
  22. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/domain/tandemsource/__init__.py +0 -0
  23. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/domain/tandemsource/event_class.py +0 -0
  24. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/domain/tandemsource/pump_settings.py +0 -0
  25. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/domain/therapy_event.py +0 -0
  26. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/domain/utility.py +0 -0
  27. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/eventparser/__init__.py +0 -0
  28. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/eventparser/build_events.py +0 -0
  29. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/eventparser/events.py +0 -0
  30. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/eventparser/generic.py +0 -0
  31. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/eventparser/raw_event.py +0 -0
  32. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/eventparser/static_dicts.py +0 -0
  33. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/eventparser/transforms.py +0 -0
  34. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/eventparser/utils.py +0 -0
  35. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/features.py +0 -0
  36. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/nightscout.py +0 -0
  37. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/parser/__init__.py +0 -0
  38. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/parser/ciq_therapy_events.py +0 -0
  39. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/parser/nightscout.py +0 -0
  40. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/parser/tconnect.py +0 -0
  41. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/process.py +0 -0
  42. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/secret.py +0 -0
  43. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/__init__.py +0 -0
  44. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/__init__.py +0 -0
  45. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/choose_device.py +0 -0
  46. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/cli_helpers.py +0 -0
  47. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/helpers.py +0 -0
  48. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/heroku_helpers.py +0 -0
  49. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process.py +0 -0
  50. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_alarm.py +0 -0
  51. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_basal.py +0 -0
  52. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_basal_resume.py +0 -0
  53. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_basal_suspension.py +0 -0
  54. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_bolus.py +0 -0
  55. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_cartridge.py +0 -0
  56. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_cgm_alert.py +0 -0
  57. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_cgm_reading.py +0 -0
  58. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_cgm_start_join_stop.py +0 -0
  59. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_device_status.py +0 -0
  60. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/process_user_mode.py +0 -0
  61. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/sync/tandemsource/update_profiles.py +0 -0
  62. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/util/__init__.py +0 -0
  63. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/util/cli.py +0 -0
  64. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync/util/constants.py +0 -0
  65. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync.egg-info/SOURCES.txt +0 -0
  66. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync.egg-info/dependency_links.txt +0 -0
  67. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync.egg-info/entry_points.txt +0 -0
  68. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync.egg-info/requires.txt +0 -0
  69. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tconnectsync.egg-info/top_level.txt +0 -0
  70. {tconnectsync-2.3.0 → tconnectsync-2.3.1}/tests/test_secret.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tconnectsync
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2
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 = 2.3.0
3
+ version = 2.3.1
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
@@ -119,7 +119,7 @@ def main(*args, **kwargs):
119
119
 
120
120
  if args.auto_update:
121
121
  u = TandemSourceAutoupdate(secret)
122
- sys.exit(u.process(tconnect, nightscout, time_start, time_end, args.pretend, features=args.features))
122
+ sys.exit(u.process(tconnect, nightscout, args.pretend, features=args.features))
123
123
  else:
124
124
  tconnectDevice = TandemSourceChooseDevice(secret, tconnect).choose()
125
125
  added, last_event_id = TandemSourceProcessTimeRange(tconnect, nightscout, tconnectDevice, pretend=args.pretend, secret=secret, features=args.features).process(time_start, time_end)
@@ -27,7 +27,7 @@ class TandemSourceAutoupdate:
27
27
  until stopped (ctrl+c), or a maximum of AUTOUPDATE_MAX_LOOP_INVOCATIONS times.
28
28
  Stops if AUTOUPDATE_RESTART_ON_FAILURE is set and an error occurs.
29
29
  """
30
- def process(self, tconnect, nightscout, time_start, time_end, pretend, features=None):
30
+ def process(self, tconnect, nightscout, pretend, features=None):
31
31
  if features is None:
32
32
  features = DEFAULT_FEATURES
33
33
 
@@ -40,6 +40,9 @@ class TandemSourceAutoupdate:
40
40
  logger.debug("autoupdate loop")
41
41
  now = time.time()
42
42
 
43
+ time_end = datetime.datetime.now()
44
+ time_start = time_end - datetime.timedelta(days=1)
45
+
43
46
  tconnectDevice = ChooseDevice(self.secret, tconnect).choose()
44
47
 
45
48
  event_seqnum = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tconnectsync
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: Syncs Tandem Source (formerly t:connect) insulin pump data to Nightscout for the t:slim X2
5
5
  Home-page: https://github.com/jwoglom/tconnectsync
6
6
  Author: James Woglom
File without changes
File without changes
File without changes