442 Commits
Author SHA1 Message Date
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
James Woglom e7816c4aa0 tests/api: test ws2 therapy_timeline_csv parsing 2021-04-24 23:12:36 -04:00
James Woglom 18f1149b28 tests: add ws2 api tests for retries 2021-04-24 22:48:45 -04:00
James Woglom fe941c432f api/ws2: add retry logic for http 500s in therapy_timeline_csv (fix #9) 2021-04-24 22:27:07 -04:00
James WoglomandGitHub 71ceb94270 Merge pull request #8 from jwoglom/develop
version 0.2.0
v0.2.0
2021-04-21 01:43:43 -04:00
James Woglom a3c7aa69a9 tests: add bolus parsing tests 2021-04-21 01:38:53 -04:00
James Woglom 093a7f0627 tests: add bolus tests 2021-04-21 01:27:13 -04:00
James Woglom e1921ccac7 tests/api: override needs_relogin in ControlIQApi 2021-04-21 00:53:58 -04:00
James Woglom 52f7972153 api/controliq: check access token expiration time 2021-04-21 00:51:27 -04:00
James Woglom 2130099f70 sync/basal: fix duplicate upload error uncovered by tests 2021-04-21 00:45:36 -04:00
James Woglom 4c6e05b2c1 tests: add Nightscout fake, tests for basal processing 2021-04-21 00:44:50 -04:00
James Woglom cda01894dc add basic fake for tconnect api classes 2021-04-20 00:52:11 -04:00
James Woglom 7a18a5d4be run CI on develop branch 2021-04-20 00:27:52 -04:00
James Woglom 4b8ddd0cec nightscout.py: move methods into class, initialize NightscoutApi in main
Changes all code which interacts with the nightscout api to
invoke it via a NightscoutApi object which is passed to it
and defined in the main, rather than having utility methods
in nightscout.py which rely on the global secret file state
of nightscout url/secret.
2021-04-20 00:26:18 -04:00
James Woglom 1efe532a2f tests: add parser tests for nightscout 2021-04-20 00:07:09 -04:00
James Woglom 8dcbee4280 bugfix: use access token expire date in android api
Before an instance of the android api is invoked via the TConnectApi
wrapper, the needs_relogin method is called to see whether the
current access token has expired. That check was using the refresh
token expiration date instead of the access token expiration date.
(The refresh tokens in the android api are currently unused.)
2021-04-19 23:53:55 -04:00
James Woglom c7aac1dca3 update pipfile.lock: fix CVE-2021-28957 2021-04-06 13:18:19 -04:00
James WoglomandGitHub 739c01f876 Merge pull request #4 from LegendaryGeek/master
Update README.md to correct the docker run commands
2021-04-03 23:30:19 -04:00
James WoglomandGitHub 8ce8b42bfc Update README.md 2021-04-03 23:26:38 -04:00
James WoglomandGitHub c14298384a Update README.md - clarify folder for .env 2021-04-03 23:21:54 -04:00
LegendaryGeekandGitHub 84067015e3 Update README.md to correct the docker run commands 2021-04-03 18:08:20 -04:00
James Woglom 0b7e806a40 check: add --check-login option, which checks that the APIs can be queried 2021-03-22 22:38:07 -04:00
James Woglom 89b40dcecb nightscout: use urljoin so trailing backslash is not required in URL. add api status endpoint 2021-03-22 22:37:32 -04:00
James Woglom 539516aeae api: add API endpoints for checking general status (basaliq, controliq) 2021-03-22 22:37:05 -04:00