• Guest - w'd love to know what you think about the forum! Take the 2025 Survey »

Writing BG Management App

andcol

Well-Known Member
Retired Moderator
Messages
3,176
Type of diabetes
I reversed my Type 2
Treatment type
I do not have diabetes
Hi all,

I have started to write an app to manage all of my blood glucose readings and to give me graphs and different stats. Here are some screen shots of where I have got to today:

Main display showing all entries
upload_2014-4-20_16-43-49.png

The graph is zoomable with the mouse (also showing the fasting settings)
upload_2014-4-20_16-46-46.png

The next screen shot shows my pre and post prandials
upload_2014-4-20_16-48-59.png

The pane on the bottom right shows the average for the last 90 days (since last sample) and an estimate of the HbA1c some statistics on the fasting and 2 hour post-prandials (upper percentile is the 75th)
 

Attachments

  • upload_2014-4-20_16-46-10.png
    upload_2014-4-20_16-46-10.png
    125.7 KB · Views: 1,111
Things to do
1. Add data points (current loaded from a file on start up)
2. Implement a database
3. Implement average graphs of various types
4. Implement distribution graphs.
5. Edit points
6. Scrolling for zoomed graph
7. Improve import from file so you can define format of csv


If you have any ideas or want a copy then please post below
 
wow ! I'm not sure I would know how to use it but I'd love a copy !
 
That is my plan will put it on my web site with instructions on loading the data and add a link here. It is written in java and all the libraries are packaged in the jar so should run anywhere
 
To run the app execute java -jar <path-to-jar> -f <path to csv>

csv file is of the following format:
Date,reading,boolean

Date must be in this format dd/MM/YY HH:mm eg 01/02/14 08:00 (24 hour clock
reading is in mmol/L
boolean is TRUE if pre-prandial (fastings are calculated)
 
very possibly but you are stuck with what they give you lol and that is also ok if you use an OS that they decide to support
 
:) yes.....or not, i dont hardly test my bloods and never look at the software anymore, so im stuck with facebook or doctor who repeats at the moment due to an obsessed 13 year old lol
 
To run the app execute java -jar <path-to-jar> -f <path to csv>

csv file is of the following format:
Date,reading,boolean

Date must be in this format dd/MM/YY HH:mm eg 01/02/14 08:00 (24 hour clock
reading is in mmol/L
boolean is TRUE if pre-prandial (fastings are calculated)
This is where my problem lies lol ! I have no clue what this means. Thanks anyway :-)


Sent from the Diabetes Forum App
 
This is where my problem lies lol ! I have no clue what this means. Thanks anyway :)


Sent from the Diabetes Forum App
ok i will add a file load menu so you can select it - will be done after I watch this film so then you can just double click and load the file
 
Thanks Andrew. No rush. Sorry but I am not great with computers. I use a Mac, is that OK ? I have Word on it.
 
Looks good Andrew, but I think I'll stick to Excel on my PC - I tend not to use tablets or smartphones for databases, even though I know you can.

I note your first reading is ticked as both a fasting and a preprandial reading - is that deliberate? (I.e. Testing before breakfast).

Do you intend including blood pressure, weight etc as well?
 
yes and food and exercise. I always test when I get up and if i dont exercise and just have breakfast it is a pre-prandial. The fastings are calculated as the first entry on the day. You can mark an entry in the underlying model as a fasting reading and that will over ride any calculated entry
 
file dialog that comes up - like file open in word
load the csv file I have uploaded as it has some sample data (actually has my real data)

download both files and double click the .jar file when it has started select "File | Load"
 
Back
Top