James Woglom
b6569edabc
configure console_script for tconnectsync, move main code to inside package
2021-10-20 00:34:58 -04:00
James Woglom
7d813ee8fb
main: update logging config to show timestamps
2021-07-09 21:49:34 -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
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
0b7e806a40
check: add --check-login option, which checks that the APIs can be queried
2021-03-22 22:38:07 -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
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
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