James Woglom
19f4f9363a
autoupdate: add custom env options to control update rate
...
Also updates secret.py to use simpler code for parsing numbers
2021-03-22 01:27:27 -04:00
James Woglom
d804510633
.github/workflows: update workflow, add readme badge
2021-03-18 02:17:44 -04:00
James Woglom and GitHub
713d2ee79e
Create python-package.yml
...
Auto-run linter, pytest, and pipenv check
2021-03-18 02:11:54 -04:00
James Woglom
e0bfab8759
tests/parser: add start of TConnectEntry test
2021-03-18 02:07:54 -04:00
James Woglom
209292dd21
tests/sync: complete basal ciq process test
2021-03-18 02:07:39 -04:00
James Woglom
1a9fb36b88
refactor: move tconnect and nightscout API parsers into subpackage
2021-03-18 01:53:03 -04:00
James Woglom
2e0120fdfc
tests: add first test for basal processing
2021-03-18 01:42:44 -04:00
James Woglom
3911da7d37
refactor: update file links in readme
2021-03-18 01:10:51 -04:00
James Woglom
7cfd486ac5
refactor: move auto-update code to separate file
2021-03-18 01:04:24 -04:00
James Woglom
8c6719c6a6
refactor: fix secret imports, move to pkg folder
2021-03-18 01:04:24 -04:00
James Woglom
d00d8e59dd
refactor: move process and synchronization code outside of main file
...
Splits up basal, bolus, and iob parsing code into
separate files in the sync folder. Moves the single-
cycle processing code into process.py
2021-03-18 01:04:24 -04:00
James Woglom
63ca6eda43
refactor: move into a standardized python packaging format
...
In the current directory structure, py files inside of
a folder cannot import files inside a different folder.
2021-03-18 00:34:28 -04:00
James Woglom
14b5bfea67
api/android: log android api error text
v0.1.0
2021-03-16 20:53:19 -04:00
James Woglom
3b0794accc
api: use separate exception class for login errors
2021-03-16 20:51:46 -04:00
James Woglom and GitHub
7ec4f96cba
Update README.md - quote values in env file
2021-03-16 20:40:15 -04:00
James Woglom and GitHub
c2674fcb1b
Update README: Add Docker Hub repo
2021-03-15 22:52:00 -04:00
James Woglom and GitHub
6ebb9bb9dd
Create publish-docker.yml
2021-03-15 20:50:05 -04:00
James Woglom
b7e8dceef1
Add dockerfile and instructions in README
2021-03-15 20:42:13 -04:00
James Woglom
e45a850346
secret.py: fix pump serial number validation
...
Some Tandem pump serial numbers are less than 8 digits.
(I previously had one which was 6 digits.)
2021-03-15 20:15:10 -04:00
James Woglom and GitHub
c977e05310
Merge pull request #1 from bewest/wip/bewest/dev
...
Wip/bewest/dev - 12 factor app
2021-03-15 18:53:00 -04:00
Ben West
0f4cf36de2
12 factor app: environment variables
...
Use the dotenv library to read both a file called .env, as well as inspect
environment variables.
In addition, provide some checking and sanitization on the PUMP_SERIAL_NUMBER
along with an error message for commonly anticipated issues.
2021-03-14 21:51:33 -07:00
Ben West
d47aee77c9
pipenv install python-dotenv
...
Adding this library allows reading from standard environment files as well as
environment variables.
2021-03-14 21:50:35 -07:00
Ben West
cc952992e0
12 factor app: prep for reading environment variables
...
This change prepares the repo to ignore a .env file instead of the secret.py.
It also eliminates the secret.py.example file, which shouldn't be needed.
2021-03-14 21:46:48 -07:00
James Woglom and GitHub
1c09beb5c3
Update README.md
2021-03-15 00:45:30 -04:00
James Woglom and GitHub
d841c3811a
Update README.md
2021-03-15 00:39:29 -04:00
James Woglom
dd77e07f50
add readme
2021-03-15 00:13:57 -04:00
James Woglom
dc7f5e282c
add helper script
2021-03-06 02:35:43 -05:00
James Woglom
6ccac86b52
add user-agent header
2021-03-06 02:33:21 -05:00
James Woglom
a35a71a04a
force format=csv on therapytimeline2csv endpoint
2021-03-06 02:16:44 -05:00
James Woglom
058cdeea22
skip parsing dates of non completed entries
2020-12-07 01:55:49 -05:00
James Woglom
7df097abd9
add suspend reason
2020-10-04 02:33:25 -04:00
James Woglom
6fa119720a
split up API types, add android api. add auto update option
2020-10-04 00:48:46 -04:00
James Woglom
5cc3f8574b
use float duration, replace most recent entry if it has a longer duration than before
2020-09-29 01:21:03 -04:00
James Woglom
33edcc9d44
support extended bolus
2020-09-28 00:54:15 -04:00
James Woglom
c36d4b25df
wrap controliq 404, better handle no data
2020-09-26 23:48:16 -04:00
James Woglom
ff8cecce15
parse csv basal data if present
2020-09-26 23:36:26 -04:00
James Woglom
31547b05c8
update pipfile lock
2020-09-26 21:58:21 -04:00
James Woglom
6b29a651e4
productionize: add command line flags, document
2020-09-26 21:51:28 -04:00
James Woglom
60f534d7b7
upload parsed tconnect bolus, basal, and iob entries to nightscout
2020-09-15 01:59:25 -04:00
James Woglom
ef5f549275
process tconnect basal entries
2020-09-02 01:22:47 -04:00
James Woglom
ab924c1ac2
initial commit: tandem t:connect api
2020-08-27 21:54:05 -04:00