bgt (short for blood glucose table) is an Emacs package to keep record and track blood glucose level
(use-package bgt
:straight (bgt :type git :host github :repo "md-arif-shaikh/bgt")
:config
(setq bgt-file-name "/path/to/bgt.org") ;; full name with path of the org file to save the glucose levels data
(setq bgt-csv-file-name "/path/to/bgt.csv") ;; name of csv file to export the org table
(setq bgt-python-file "/path/to/bgt.py") ;; full path to the python script that comes with the package to plot the trend of glucose levels
(setq bgt-python-path "/path/to/python")) ;; path to the python program that runs the python scriptThe trend of glucose levels over the time could be seen by plotting the glucose leves vs time. For this we need
- Python installed on your machine.
- Matplotlib, a plotting package for python and
- Pandas, a DataFrame tool for python.
M-x bgt opens the log in a dedicated buffer: a sortable list of your
measurements with a summary header, filters for category and date range,
and a row of buttons at the bottom for the common actions.
M-x bgt-dispatch (or ? inside the log) opens the same commands as a
transient menu.
Keys in the log buffer:
| Key | Action |
|---|---|
a | add an entry |
RET / m | modify the entry at point |
d | delete the entry at point |
c | filter by category |
r | filter by date range |
p | plot a date range |
x | export to CSV |
g | refresh |
e | open the raw Org file |
? | transient menu |
q | quit |
The data is still kept as a plain Org table in bgt-file-name, so older
files keep working and you can always edit them by hand.