Video overlay description

I have been working on a repeatable process to create YouTube videos that contain my AndroidAPS (AAPS) device data stored in Nightscout. My first attempt used a Python script to export a CSV file. This needed to be started by saving a note in Nightscout, which I often forgot to do just before I started riding. My most recent update stores the devicestatus (https://your-nightscout-site/api/v1/devicestatus) API call into a database and does not require any external trigger to start the logging process. This data is updated every five (5) minutes as a calculation cycle completes in AAPS. The below is an explanation of some of the fields I am exporting.

Description of values present in the video:

  • IOB (Insulin-on-board) – The amount of active rapid-acting insulin you have in your body.
  • COB (Carbs-on-board) – The estimated number of grams of carbohydrates in your system that are waiting to be absorbed into your bloodstream
  • Basal – The primary job of basal insulin is to keep your blood glucose levels stable during periods of fasting, such as while you’re sleeping
  • Uploader battery – The battery % of the uploader device.
  • BGI (blood sugar impact) – The algorithm uses BGI (blood glucose impact) to determine when carbs are absorbed.
  • Insulin Required – The amount of insulin the algorithm calculates you require to return to a euglycemic state.
  • Finger prick BG – The blood sugar reading from a standard finger prick test.
  • Blood sugar – The CGM blood sugar value.
  • CSF (carb-sensitivity-factor) – The carb rise ratio (by some also called CSF, carb sensitivity factor) describes by how many mg/dl our glucose rises per gram of absorbed carbohydrate.
  • Dynamic ISF (insulin-sensitivity-factor) – An insulin sensitivity factor (ISF) or correction factor describes how much one unit of rapid or regular insulin will lower blood glucose. Dynamic ISF is calculated based on your total daily dose of insulin.