Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carb ratio on bolus wizard history records #146

Open
ps2 opened this issue Nov 15, 2015 · 0 comments
Open

Carb ratio on bolus wizard history records #146

ps2 opened this issue Nov 15, 2015 · 0 comments

Comments

@ps2
Copy link
Contributor

ps2 commented Nov 15, 2015

The carb_ratio attribute is being decoded wrong, I believe.

https://github.com/bewest/decoding-carelink/blob/master/decocare/records/bolus.py#L98

 {
    "_type": "BolusWizard", 
    "bg": 100, 
    "bg_target_high": 140, 
    "_description": "BolusWizard 2015-11-14T20:59:47 head[2], body[15] op[0x5b]", 
    "timestamp": "2015-11-14T20:59:47", 
    "_body": "0f5000783c4100003200000000328c", 
    "_head": "5b64", 
    "unabsorbed_insulin_total": 0.0, 
    "correction_estimate": 0.0, 
    "_date": "affb140e0f", 
    "bolus_estimate": 1.25, 
    "bg_target_low": 65, 
    "carb_ratio": 8.0, 
    "food_estimate": 1.25, 
    "carb_input": 15, 
    "sensitivity": 60
  }, 

The carb ratio in my pump is 12, not 8.

I noticed this when comparing decoding results from my minimed_rf and decocare. Here is how I do it: https://github.com/ps2/minimed_rf/blob/master/lib/minimed_rf/log_entries/bolus_wizard.rb#L111

The offsets are different, as mine include the 'head' and '_date' positions.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28258343-carb-ratio-on-bolus-wizard-history-records?utm_campaign=plugin&utm_content=tracker%2F522759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F522759&utm_medium=issues&utm_source=github).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants