bewest / decoding-carelink

python serial driver for mm comlink2 protocol
http://bewest.github.io/decoding-carelink
Other
71 stars 52 forks source link

fix carb ratio #147

Closed ps2 closed 8 years ago

ps2 commented 8 years ago

See the Carelink csv below for verification of correct decoding.

pete$ ruby -Ilib bin/decode_history_page -d /Users/pete/dev/decoding-carelink/analysis/736868/logs/ReadHistoryData-page-0.data 523 record[0]:BolusWizard - :carb_ratio mismatch. decocare = 8.0, minimed_rf = 6.0 /Users/pete/dev/decoding-carelink/analysis/736868/logs/../CareLink-Export-1431237740531.csv:17221,3/28/15,21:29:36,3/28/15 21:29:36,,,,,,,,,,,,,,,0.0,120,90,6,40,0,0,0,0,0.0,,,,,,BolusWizardBolusEstimate,"BG_INPUT=0, BG_UNITS=mg dl, CARB_INPUT=0, CARB_UNITS=grams, CARB_RATIO=6, INSULIN_SENSITIVITY=40, BG_TARGET_LOW=90, BG_TARGET_HIGH=120, BOLUS_ESTIMATE=0, CORRECTION_ESTIMATE=0, FOOD_ESTIMATE=0, UNABSORBED_INSULIN_TOTAL=0, UNABSORBED_INSULIN_COUNT=15, ACTION_REQUESTOR=paradigm link or b key",14767324220,53801409,117,Paradigm Revel - 523