This is a streamlit-based diabetes tracker and decision support system that predicts glucose levels based on personal insulin and food signals extracted from CGM time series data.
On the dashboard, you can view your CGM data and add the following events:
Insulin- These are your insulin injectionsMeal- Any meal, food, or snack you eatActivities- This can be any physical or psychological activity that effects your glucose levels.Fingersticks- Fingerstick blood glucose entries. Useful to keep track accuratacy of the CGM sensor.
One key feature of this tool is that you can extract meal effects from your cgm data. This is done by subtracting the insulin effect.
This allows you to build up a library of meal effects that you can learn from and make better dosing/predictions.
The simulator is where you can use your extracted meal effects to simulate how you might best dose for a specific meal.
Note: At this time, only Freestyle Libre data is supported.
Ensure that your Freestyle Libre is connected to a libreview.com account.
Create the .streamlit/secerts.toml file from the example file:
cp .streamlit/secrets.toml.example .streamlit/secrets.toml
Replace the username and password with your LibreView credentials.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtpython app/utils/init_db.pystreamlit run app.py


