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

Parse Exercise Markers in Pump History #126

Closed
channemann opened this issue Sep 4, 2015 · 1 comment
Closed

Parse Exercise Markers in Pump History #126

channemann opened this issue Sep 4, 2015 · 1 comment

Comments

@channemann
Copy link
Contributor

channemann commented Sep 4, 2015

Currently, markers are parsed into meal markers and other:

class JournalEntryMealMarker(KnownRecord):
"""Capture Event > Meal marker"""
opcode = 0x40
body_length = 2
def decode(self):
super(JournalEntryMealMarker, self).decode()
return dict(carb_input=int(lib.BangInt([self.head[1], self.body[0]])))
_confirmed.append(JournalEntryMealMarker)
class JournalEntryOtherMarker(KnownRecord):
"""Capture Event > Other"""
opcode = 0x43
body_length = 0
_confirmed.append(JournalEntryOtherMarker)

It would be great to parse out the exercise markers as well, specifically for use in some downstream functionality (see loudnate/openaps-predict#13)

@bewest
Copy link
Owner

bewest commented Mar 31, 2016

Ah, this one looks fixed. :-) Would still love for @MedtronicDiabetes to confirm.

@bewest bewest closed this as completed Mar 31, 2016
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