James Woglom
e3542bc002
webui: detect logged out state and trigger re-login
2023-09-30 20:33:55 -04:00
James Woglom
22006f7c0f
Bump supported software version and display login error message
2023-06-11 00:24:42 -04:00
James Woglom
4409b78890
add completed extended bolus test
2023-02-04 00:09:35 -05:00
James Woglom
e52cd73549
Fix incomplete extended bolus parsing
2023-02-03 23:40:15 -05:00
James Woglom
ee85226c2f
fix test failure
2023-01-16 19:54:16 -05:00
James Woglom
85303bca82
transparently split large time range calls to ws2 therapytimeline
2023-01-16 19:25:21 -05:00
James Woglom
04c5a37b8d
separate basal suspension events into own feature to allow skipping WS2 api
2023-01-16 18:06:29 -05:00
James Woglom
b9fae36dda
ensure permutations of the same number in different types are considered the same NS profile
2023-01-16 17:35:31 -05:00
James Woglom
1507398eb0
track count in integration tests
2023-01-16 17:12:46 -05:00
James Woglom
d9e49e1fc8
integration tests for profile upload
2023-01-16 16:58:19 -05:00
James Woglom
dd9a9ea72c
tests for profile synchronization
2023-01-16 16:00:50 -05:00
James Woglom
d69a760f5b
Translate Tandem profile information to Nightscout format
2023-01-16 14:25:31 -05:00
Jarred Yaw and James Woglom
b929d1151e
Moved logger.warn() statements to logger.warning() due to the deprecation msgs I was getting while testing
2022-10-02 00:18:11 -04:00
James Woglom
0ebfb2b744
add 10 second timeout on ws2 requests
2022-08-12 00:19:11 -04:00
James Woglom
6f15ef8857
use domain objects for webui scraping pump profiles
2022-08-11 01:22:44 -04:00
James Woglom
2f5775cbfb
internally track bolus from CIQ API identically at par with WS2
2022-08-10 01:31:45 -04:00
James Woglom
f13929a45a
therapy_event and tests
2022-08-10 00:22:13 -04:00
James Woglom
a18c2f3d17
move Bolus internal state from dictionary to domain object
2022-08-09 22:54:51 -04:00
James Woglom
d3816b18b2
propagate time filter to all ns_writes
2022-07-20 02:43:31 -04:00
James Woglom
51abc15512
propagate -- but do not use -- time_start and time_end in last_uploaded_entry
2022-07-20 02:17:02 -04:00
James Woglom
52031d1d8a
fix GETs with data
2022-07-20 01:32:32 -04:00
James Woglom
7139247d1c
ensure consistent user agent across runtime
2022-07-20 01:17:05 -04:00
James Woglom
123acaf163
fix requests proxies monkey-patch
2022-07-20 00:36:22 -04:00
James Woglom
d7cc6f957f
test proxy
2022-07-19 23:57:49 -04:00
James Woglom
ae2bf9a3a6
support proxy
2022-07-19 23:23:12 -04:00
James Woglom
fae1d4de2c
api: add WebUIScraper which can read pump settings and profile info
2022-01-09 18:36:49 -05:00
James Woglom
7b22d612c3
autoupdate: refactor into class and write test
2022-01-07 00:32:50 -05:00
James Woglom
631d1c7b89
parser: support temp-profile basal suspension event
2021-12-27 15:56:50 -05:00
James Woglom
0253956377
test_secret: allow test to pass even if environment variables implicitly passed to pipenv test
2021-12-27 15:56:19 -05:00
James Woglom
7a8d00da88
secret: put environment variables at higher precedence than .env file
2021-12-23 20:46:58 -05:00
James Woglom
27ba5d9a64
Update dotenv secret parsing logic, and read from .config/tconnectsync/.env path
2021-12-23 19:39:51 -05:00
James Woglom
118ee236ba
test_process: add WS2 activity event process tests
2021-12-04 21:37:34 -05:00
James Woglom
1657b1c696
test_process: add test coverage for CIQ pump_events sync
2021-12-04 21:20:47 -05:00
James Woglom
0a9dd8732f
bug: use deepcopy to avoid mutating the base dictionary
2021-12-04 21:20:13 -05:00
James Woglom
dbb1389254
hack: enable debug logging in tests
2021-12-04 21:18:53 -05:00
James Woglom
163db9807b
sync/pump_events: upload events to nightscout
2021-12-04 20:28:03 -05:00
James Woglom
b1ca7eee1e
add basalsuspension parsing + tests
2021-12-04 19:02:13 -05:00
James Woglom
1fa543e3d6
add PUMP_EVENTS feature, with initial code for parsing CIQ activities (sleep mode, exercise, etc)
2021-12-04 17:41:16 -05:00
James Woglom
9635b0bd0f
sync/basal: process manual suspension events as manual 0u/hr basal, fixes #17
2021-10-28 01:38:11 -04:00
James Woglom
f5ef34174f
in-progress: support BOLUS_BG and CGM features.
...
BOLUS_BG will add BG readings which are associated with boluses
on the pump into the Nightscout treatment object. It will determine
whether the BG reading was automatically filled via the Dexcom
connection on the pump or was manually entered by seeing if the
BG reading matches the current CGM reading as known to the pump
at that time. Support for this is nearly complete.
CGM will add Dexcom CGM readings from the pump to Nightscout
as SGV (sensor glucose value) entries. This should only be
used in a situation where xDrip is not used and the pump
connection to the CGM will be the only source of CGM
data to Nightscout. This requires additional testing before
it should be considered ready.
Both options are hidden behind the ENABLE_TESTING_MODES=true
environment variable. Run tconnectsync with this environment
variable and BOLUS_BG and CGM will be usable with the
--features argument.
2021-10-24 00:36:48 -04:00
James Woglom
9f488b2c5e
support specifying specific features to synchronize (basal, bolus, iob)
2021-10-23 16:31:59 -04:00
James Woglom
c33a674bad
iob: add e2e tests for IOB behavior
2021-10-14 02:02:57 -04:00
James Woglom
3be0289177
bolus: add tests for partial entries, propagate requested_insulin
2021-10-14 02:02:57 -04:00
James Woglom
87f531cbb3
tests: add iob test, fix sleep increment in ws2 tests
2021-10-14 02:02:57 -04:00
James Woglom
380e4f00b6
parser/nightscout: add rate field for temp basals for autotune compatibility ( fixes #7 )
2021-05-03 23:59:30 -04:00
James Woglom
f9ecaedf4d
tests/controliq: fix fake access token expiration in tests. remove warns for warnings
2021-05-03 23:59:30 -04:00
James Woglom
33df18d4c9
api/android: add tests for last_event_uploaded and retry behavior
2021-04-26 23:07:32 -04:00
James Woglom
05c19fffa7
api/controliq: add login tests
2021-04-26 22:50:33 -04:00
James Woglom
878cd5b247
api/controliq: retry/relogin on http errors, add tests
2021-04-26 22:50:33 -04:00
James Woglom
e7816c4aa0
tests/api: test ws2 therapy_timeline_csv parsing
2021-04-24 23:12:36 -04:00