115 Commits
Author SHA1 Message Date
James Woglom 52cb287ce8 bump version to 0.6.1 v0.6.1 2021-12-23 20:38:23 -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 WoglomandGitHub 2140bd356e Update README.md with note about forking the repo 2021-12-15 15:31:33 -05:00
James Woglom a74b63ab05 bugfix: check for extended bolus start/completion time presence before parsing, since extended boluses can be in progress 2021-12-12 13:29:08 -05:00
James Woglom b0ffe9bcfc update to 1.6 v0.6 2021-12-04 22:00:56 -05:00
James Woglom ca4ca72476 add SKIP_NS_LAST_UPLOADED_CHECK workaround when running tconnectsync for past data. see #23 2021-12-04 21:56:30 -05:00
James Woglom 8cef3233c6 features: enable PUMP_EVENTS as optional feature 2021-12-04 21:38:13 -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 037f53e8c4 version: update to 0.5, due to suspension event changes v0.5 2021-10-28 01:43:11 -04: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 e9f569d2a0 workflows: only publish to pypi on dispatch 2021-10-24 00:41:04 -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 WoglomandGitHub 99341c5443 README: use GitHub Registry instead of Docker Hub 2021-10-20 01:40:20 -04:00
James Woglom a2df266e93 setup.cfg: bump to v0.4.1 v0.4.1 2021-10-20 01:30:35 -04:00
James Woglom b53fb9c099 README: update with pip installation mechanism, and clarify installation steps 2021-10-20 01:28:43 -04:00
James Woglom bcd486561f dockerfile: fix build v0.4.0 2021-10-20 01:01:47 -04:00
James Woglom d931242562 setup.cfg: set version to 0.4.0 2021-10-20 00:51:26 -04:00
James Woglom bec1cef1f1 dockerfile: attempt to fix build 2021-10-20 00:48:46 -04:00
James Woglom 82ec1b4c1b pypi: add github action 2021-10-20 00:43:28 -04:00
James Woglom b6569edabc configure console_script for tconnectsync, move main code to inside package 2021-10-20 00:34:58 -04:00
James Woglom 2e5d8fc793 add setup.cfg/setup.py/pyproject.toml 2021-10-20 00:15:23 -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 WoglomandGitHub 795b5ce240 Merge pull request #15 from policetonyR/patch-1
Remove PatientObjectId
2021-09-10 20:36:02 -04:00
TonyandGitHub 3a004183bb Remove PatientObjectId
After trying to run auto update, I was met with an error saying that patientObjectId was not found, I commented the code out and the auto update ran. I propose that this line is removed as I do not see any use for the variable anywhere.
2021-09-09 15:06:29 -04:00
James Woglom 7d813ee8fb main: update logging config to show timestamps 2021-07-09 21:49:34 -04:00
James Woglom d0366cc064 sync/bolus: fix bug when synchronizing extended bolus 2021-07-09 21:30:23 -04:00
James Woglom f2f7b1c0e1 api: add basalsuspension, pumpfeatures api endpoints 2021-07-09 21:29:06 -04:00
James Woglom 855e50358a bugfix: fix TypeError if last_process_time_range is None, fix printf 2021-05-06 13:30:26 -04:00
James Woglom 4afb35e235 bugfix: autoupdate v0.3.1 2021-05-04 02:03:36 -04:00
James Woglom 655e66a8aa bug: fix string format 2021-05-04 02:00:27 -04:00
James Woglom 380e4f00b6 parser/nightscout: add rate field for temp basals for autotune compatibility (fixes #7) v0.3.0 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 faf54b1f47 autoupdate: add new config options if no data received, log pretty timestamps 2021-05-03 23:59:30 -04:00
James Woglom 1733b0e139 logging: use logger instead of prints, improve logging throughout 2021-05-03 23:59:30 -04:00
James Woglom acfe44881b add .codecov.yml 2021-04-26 23:14:58 -04:00
James Woglom 3fc9cdeea3 add .codecov.yml 2021-04-26 23:14:43 -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 WoglomandGitHub 9c8e5c150c Add codecov badge 2021-04-24 23:36:38 -04:00
James WoglomandGitHub 01d9517ff4 Add codecov 2021-04-24 23:24:01 -04:00