Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Record Blood Glucose Level with Emacs

bgt (short for blood glucose table) is an Emacs package to keep record and track blood glucose level

Installation

(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 script

Requirements

The 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.

Usage

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:

KeyAction
aadd an entry
RET / mmodify the entry at point
ddelete the entry at point
cfilter by category
rfilter by date range
pplot a date range
xexport to CSV
grefresh
eopen the raw Org file
?transient menu
qquit

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.

About

Keep track of blood glucose level with Emacs

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages