-
Notifications
You must be signed in to change notification settings - Fork 52
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
iter_pump issues with 0.0.19 #156
Comments
Reverting back to 0.0.18 with |
Whoops, looks like I already reported this, here: But now it was completely breaking the use or report commands. Sorry for the redundancy. |
I just placed more page dumps here: https://github.com/tghoward/decoding-carelink/tree/thowdat/logs/2016-01-09 |
START /home/bewest/src/decocare/logs/2016-01-09/ReadHistoryData-page-31.dataERROR month must be in 1..12 0000 0x0c 0x00 .. STOPPING DOUBLE NULLS @ 1018, found 4 nullsreading more to debug 0x00 DEBUG HEX
DEBUG DECIMAL
RECORD 0 TempBasal 2015-12-23T08:50:22 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 1 TempBasalDuration 2015-12-23T08:50:22 head[2], body[0] op[0x16]DECODED{'duration (min)': 0}
RECORD 2 BasalProfileStart 2015-12-23T08:50:23 head[2], body[3] op[0x7b]DECODED{'offset': 27000000, 'profile_index': 2, 'rate': 1.25}
RECORD 3 TempBasal 2015-12-23T09:00:23 head[2], body[1] op[0x33]DECODED{'rate': 0.675, 'temp': 'absolute'}
RECORD 4 TempBasalDuration 2015-12-23T09:00:23 head[2], body[0] op[0x16]DECODED{'duration (min)': 30}
RECORD 5 TempBasal 2015-12-23T09:05:23 head[2], body[1] op[0x33]DECODED{'rate': 0.5, 'temp': 'absolute'}
RECORD 6 TempBasalDuration 2015-12-23T09:05:23 head[2], body[0] op[0x16]DECODED{'duration (min)': 30}
RECORD 7 TempBasal 2015-12-23T09:20:22 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 8 TempBasalDuration 2015-12-23T09:20:22 head[2], body[0] op[0x16]DECODED{'duration (min)': 0}
RECORD 9 BasalProfileStart 2015-12-23T09:20:23 head[2], body[3] op[0x7b]DECODED{'offset': 27000000, 'profile_index': 2, 'rate': 1.25}
RECORD 10 TempBasal 2015-12-23T09:30:33 head[2], body[1] op[0x33]DECODED{'rate': 1.35, 'temp': 'absolute'}
RECORD 11 TempBasalDuration 2015-12-23T09:30:33 head[2], body[0] op[0x16]DECODED{'duration (min)': 30}
RECORD 12 TempBasal 2015-12-23T09:40:26 head[2], body[1] op[0x33]DECODED{'rate': 1.8, 'temp': 'absolute'}
RECORD 13 TempBasalDuration 2015-12-23T09:40:26 head[2], body[0] op[0x16]DECODED{'duration (min)': 30}
RECORD 14 TempBasal 2015-12-23T09:45:23 head[2], body[1] op[0x33]DECODED{'rate': 1.35, 'temp': 'absolute'}
RECORD 15 TempBasalDuration 2015-12-23T09:45:23 head[2], body[0] op[0x16]DECODED{'duration (min)': 30}
RECORD 16 TempBasal 2015-12-23T09:55:22 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 17 TempBasalDuration 2015-12-23T09:55:22 head[2], body[0] op[0x16]DECODED{'duration (min)': 0}
RECORD 18 BasalProfileStart 2015-12-23T09:55:22 head[2], body[3] op[0x7b]DECODED{'offset': 27000000, 'profile_index': 2, 'rate': 1.25}
RECORD 19 TempBasal 2015-12-23T10:32:50 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 20 TempBasalDuration 2015-12-23T10:32:50 head[2], body[0] op[0x16]DECODED{'duration (min)': 60}
RECORD 21 TempBasal 2015-12-23T11:09:26 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 22 TempBasalDuration 2015-12-23T11:09:26 head[2], body[0] op[0x16]DECODED{'duration (min)': 0}
RECORD 23 BasalProfileStart 2015-12-23T11:09:27 head[2], body[3] op[0x7b]DECODED{'offset': 27000000, 'profile_index': 2, 'rate': 1.25}
RECORD 24 LowReservoir 2015-12-23T11:19:12 head[2], body[0] op[0x34]DECODED{'amount': 20.0}
RECORD 25 Bolus 2015-12-23T11:23:06 head[8], body[0] op[0x01]DECODED{'amount': 1.5,
'duration': 0,
'programmed': 1.5,
'type': 'normal',
'unabsorbed': 0.0}
RECORD 26 Ian50 2015-12-23T11:30:10 head[2], body[34] op[0x50]
RECORD 27 Base (2042, 1, 15, 12, 27, 15) head[2], body[0] op[0x2b]
RECORD 28 AlarmSensor 2060-01-14T00:16:05 head[3], body[0] op[0x0b]DECODED{'alarm_description': 'Unknown sensor alarm (23)', 'alarm_type': 23}
ERROR month must be in 1..12 0000 0x0c 0x00 .. RECORD 29 Sara6E (2000, 0, 12, 0, 0, 0) head[1], body[49] op[0x6e]DECODED{'error': 'month must be in 1..12', 'error_date': (2000, 0, 12)}
RECORD 30 AlarmSensor 2011-04-19T12:00:16 head[3], body[0] op[0x0b]DECODED{'alarm_description': 'Unknown sensor alarm (23)', 'alarm_type': 23}
RECORD 31 ChangeTime (2052, 0, 0, 30, 0, 32) head[2], body[0] op[0x17]
RECORD 32 ChangeParadigmLinkID (2052, 0, 26, 5, 60, 60) head[2], body[14] op[0x3c]DECODED{'links': ['460021', '001e00', '3c003c']}
RECORD 33 LowReservoir (2064, 4, 3, 27, 0, 6) head[2], body[0] op[0x34]DECODED{'amount': 18.0}
RECORD 34 PumpSuspend (2000, 0, 8, 25, 15, 23) head[2], body[0] op[0x1e]
RECORD 35 AlarmSensor 2015-12-23T13:51:59 head[3], body[0] op[0x0b]DECODED{'alarm_description': 'Meter BG Now', 'alarm_type': 104}
RECORD 36 CalBGForPH 2015-12-23T13:53:15 head[2], body[0] op[0x0a]DECODED{'amount': 228}
RECORD 37 BolusWizard 2015-12-23T13:53:18 head[2], body[15] op[0x5b]DECODED{'bg': 228,
'bg_target_high': 120,
'bg_target_low': 110,
'bolus_estimate': 1.6,
'carb_input': 0,
'carb_ratio': 11.0,
'correction_estimate': 1.8,
'food_estimate': 0.0,
'sensitivity': 60,
'unabsorbed_insulin_total': 0.2}
RECORD 38 UnabsorbedInsulinBolus unknown head[11], body[0] op[0x5c]DECODED[{'age': 137, 'amount': 0.2},
{'age': 157, 'amount': 1.5},
{'age': 367, 'amount': 0.2}]
RECORD 39 Bolus 2015-12-23T13:53:18 head[8], body[0] op[0x01]DECODED{'amount': 1.6,
'duration': 0,
'programmed': 1.6,
'type': 'normal',
'unabsorbed': 0.2}
RECORD 40 Bolus 2015-12-23T14:12:08 head[8], body[0] op[0x01]DECODED{'amount': 2.0,
'duration': 0,
'programmed': 2.0,
'type': 'normal',
'unabsorbed': 1.6}
RECORD 41 Bolus 2015-12-23T14:13:46 head[8], body[0] op[0x01]DECODED{'amount': 1.0,
'duration': 0,
'programmed': 1.0,
'type': 'normal',
'unabsorbed': 3.6}
RECORD 42 AlarmSensor 2015-12-23T14:21:15 head[3], body[0] op[0x0b]DECODED{'alarm_description': 'High Glucose', 'alarm_type': 101, 'amount': 240}
RECORD 43 LowReservoir 2015-12-23T14:21:34 head[2], body[0] op[0x34]DECODED{'amount': 10.0}
RECORD 44 Bolus 2015-12-23T14:21:22 head[8], body[0] op[0x01]DECODED{'amount': 1.0,
'duration': 0,
'programmed': 1.0,
'type': 'normal',
'unabsorbed': 4.4}
RECORD 45 TempBasal 2015-12-23T14:24:55 head[2], body[1] op[0x33]DECODED{'rate': 6.0, 'temp': 'absolute'}
RECORD 46 TempBasalDuration 2015-12-23T14:24:55 head[2], body[0] op[0x16]DECODED{'duration (min)': 60}
RECORD 47 BasalProfileStart 2015-12-23T15:24:56 head[2], body[3] op[0x7b]DECODED{'offset': 45000000, 'profile_index': 3, 'rate': 1.0}
RECORD 48 TempBasal 2015-12-23T16:47:33 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 49 TempBasalDuration 2015-12-23T16:47:33 head[2], body[0] op[0x16]DECODED{'duration (min)': 30}
RECORD 50 TempBasal 2015-12-23T17:09:57 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 51 TempBasalDuration 2015-12-23T17:09:57 head[2], body[0] op[0x16]DECODED{'duration (min)': 0}
RECORD 52 BasalProfileStart 2015-12-23T17:09:57 head[2], body[3] op[0x7b]DECODED{'offset': 45000000, 'profile_index': 3, 'rate': 1.0}
RECORD 53 BolusWizard 2015-12-23T17:54:19 head[2], body[15] op[0x5b]DECODED{'bg': 0,
'bg_target_high': 120,
'bg_target_low': 110,
'bolus_estimate': 2.2,
'carb_input': 25,
'carb_ratio': 11.0,
'correction_estimate': 0.0,
'food_estimate': 2.2,
'sensitivity': 60,
'unabsorbed_insulin_total': 0.0}
RECORD 54 UnabsorbedInsulinBolus unknown head[17], body[0] op[0x5c]DECODED[{'age': 218, 'amount': 1.0},
{'age': 228, 'amount': 3.0},
{'age': 248, 'amount': 1.6},
{'age': 378, 'amount': 0.2},
{'age': 398, 'amount': 1.5}]
RECORD 55 Bolus 2015-12-23T17:54:20 head[8], body[0] op[0x01]DECODED{'amount': 2.2,
'duration': 0,
'programmed': 2.2,
'type': 'normal',
'unabsorbed': 0.0}
RECORD 56 Rewind 2015-12-23T18:49:57 head[2], body[0] op[0x21]
RECORD 57 Prime 2015-12-23T18:50:58 head[5], body[0] op[0x03]DECODED{'amount': 6.2, 'fixed': 0.0, 'type': 'manual'}
RECORD 58 BasalProfileStart 2015-12-23T18:51:57 head[2], body[3] op[0x7b]DECODED{'offset': 45000000, 'profile_index': 3, 'rate': 1.0}
RECORD 59 Prime 2015-12-23T18:51:39 head[5], body[0] op[0x03]DECODED{'amount': 0.5, 'fixed': 0.5, 'type': 'fixed'}
RECORD 60 AlarmSensor 2015-12-23T19:53:00 head[3], body[0] op[0x0b]DECODED{'alarm_description': 'Meter BG Now', 'alarm_type': 104}
RECORD 61 CalBGForPH 2015-12-23T19:58:04 head[2], body[0] op[0x0a]DECODED{'amount': 134}
RECORD 62 BolusWizard 2015-12-23T19:58:07 head[2], body[15] op[0x5b]DECODED{'bg': 134,
'bg_target_high': 120,
'bg_target_low': 110,
'bolus_estimate': 0.0,
'carb_input': 0,
'carb_ratio': 11.0,
'correction_estimate': 0.2,
'food_estimate': 0.0,
'sensitivity': 60,
'unabsorbed_insulin_total': 0.4}
RECORD 63 UnabsorbedInsulinBolus unknown head[14], body[0] op[0x5c]DECODED[{'age': 132, 'amount': 2.2},
{'age': 342, 'amount': 1.0},
{'age': 352, 'amount': 3.0},
{'age': 372, 'amount': 1.6}]
RECORD 64 CalBGForPH 2015-12-23T21:54:14 head[2], body[0] op[0x0a]DECODED{'amount': 149}
RECORD 65 BolusWizard 2015-12-23T21:54:18 head[2], body[15] op[0x5b]DECODED{'bg': 149,
'bg_target_high': 120,
'bg_target_low': 110,
'bolus_estimate': 0.4,
'carb_input': 0,
'carb_ratio': 11.0,
'correction_estimate': 0.4,
'food_estimate': 0.0,
'sensitivity': 60,
'unabsorbed_insulin_total': 0.0}
RECORD 66 UnabsorbedInsulinBolus unknown head[11], body[0] op[0x5c]DECODED[{'age': 248, 'amount': 2.2},
{'age': 458, 'amount': 1.0},
{'age': 468, 'amount': 3.0}]
RECORD 67 Bolus 2015-12-23T21:54:18 head[8], body[0] op[0x01]DECODED{'amount': 0.4,
'duration': 0,
'programmed': 0.4,
'type': 'normal',
'unabsorbed': 0.0}
RECORD 68 BasalProfileStart 2015-12-24T00:00:00 head[2], body[3] op[0x7b]DECODED{'offset': 0, 'profile_index': 0, 'rate': 0.85}
RECORD 69 ResultDailyTotal 2015-12-24T00:00:00 head[5], body[3] op[0x07]DECODED{'valid_date': '2015-12-23'}
RECORD 70 Sara6E 2015-12-24T00:00:00 head[1], body[49] op[0x6e]DECODED{'valid_date': '2015-12-23'}
RECORD 71 AlarmSensor 2015-12-24T01:51:58 head[3], body[0] op[0x0b]DECODED{'alarm_description': 'Low Glucose', 'alarm_type': 102, 'amount': 71}
RECORD 72 TempBasal 2015-12-24T02:02:09 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 73 TempBasalDuration 2015-12-24T02:02:09 head[2], body[0] op[0x16]DECODED{'duration (min)': 30}
RECORD 74 BasalProfileStart 2015-12-24T02:32:09 head[2], body[3] op[0x7b]DECODED{'offset': 0, 'profile_index': 0, 'rate': 0.85}
RECORD 75 BasalProfileStart 2015-12-24T03:00:00 head[2], body[3] op[0x7b]DECODED{'offset': 10800000, 'profile_index': 1, 'rate': 0.75}
RECORD 76 AlarmSensor 2015-12-24T03:01:14 head[3], body[0] op[0x0b]DECODED{'alarm_description': 'Low Glucose', 'alarm_type': 102, 'amount': 75}
RECORD 77 TempBasal 2015-12-24T03:13:37 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 78 TempBasalDuration 2015-12-24T03:13:37 head[2], body[0] op[0x16]DECODED{'duration (min)': 30}
RECORD 79 BasalProfileStart 2015-12-24T03:43:37 head[2], body[3] op[0x7b]DECODED{'offset': 10800000, 'profile_index': 1, 'rate': 0.75}
RECORD 80 BolusWizard 2015-12-24T04:54:44 head[2], body[15] op[0x5b]DECODED{'bg': 0,
'bg_target_high': 120,
'bg_target_low': 110,
'bolus_estimate': 0.4,
'carb_input': 5,
'carb_ratio': 11.0,
'correction_estimate': 0.0,
'food_estimate': 0.4,
'sensitivity': 60,
'unabsorbed_insulin_total': 0.0}
RECORD 81 UnabsorbedInsulinBolus unknown head[5], body[0] op[0x5c]DECODED[{'age': 428, 'amount': 0.4}]
RECORD 82 Bolus 2015-12-24T04:54:45 head[8], body[0] op[0x01]DECODED{'amount': 0.3,
'duration': 0,
'programmed': 0.3,
'type': 'normal',
'unabsorbed': 0.0}
RECORD 83 BasalProfileStart 2015-12-24T07:30:00 head[2], body[3] op[0x7b]DECODED{'offset': 27000000, 'profile_index': 2, 'rate': 1.25}
RECORD 84 TempBasal 2015-12-24T07:48:24 head[2], body[1] op[0x33]DECODED{'rate': 3.75, 'temp': 'absolute'}
RECORD 85 TempBasalDuration 2015-12-24T07:48:24 head[2], body[0] op[0x16]DECODED{'duration (min)': 30}
RECORD 86 CalBGForPH 2015-12-24T07:53:25 head[2], body[0] op[0x0a]DECODED{'amount': 237}
RECORD 87 BolusWizard 2015-12-24T07:53:28 head[2], body[15] op[0x5b]DECODED{'bg': 237,
'bg_target_high': 120,
'bg_target_low': 110,
'bolus_estimate': 1.9,
'carb_input': 0,
'carb_ratio': 11.0,
'correction_estimate': 1.9,
'food_estimate': 0.0,
'sensitivity': 60,
'unabsorbed_insulin_total': 0.0}
RECORD 88 UnabsorbedInsulinBolus unknown head[5], body[0] op[0x5c]DECODED[{'age': 187, 'amount': 0.3}]
RECORD 89 Bolus 2015-12-24T07:53:28 head[8], body[0] op[0x01]DECODED{'amount': 1.9,
'duration': 0,
'programmed': 1.9,
'type': 'normal',
'unabsorbed': 0.0}
RECORD 90 TempBasal 2015-12-24T08:05:21 head[2], body[1] op[0x33]DECODED{'rate': 0.0, 'temp': 'absolute'}
RECORD 91 TempBasalDuration 2015-12-24T08:05:21 head[2], body[0] op[0x16]DECODED{'duration (min)': 0}
|
For @tghoward et al to test, per bewest/decoding-carelink#156 Former-commit-id: b1123ae81bd59a6064c396070285694a42092b40 Former-commit-id: 9fb2a07a66605698e57307a449aeb9df79bf1ecc [formerly fe23c735d807ec0840486707383f7344392d9cd8] Former-commit-id: 9b86a5093b368f65ad92a2e111df9cef0fee4db6 Former-commit-id: 1c6386098ba30e2c99c67e7e055b86595647ea80
upgraded yesterday to 0.0.19 from 0.0.18 and all was fine immediately, but now it is complaining. So I'm assuming that means there's a record that isn't getting parsed correctly or something. iter_pump_hours gives the same error. read_history does give data. Pump is a MM 723 with integrated cgm.
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29381109-iter_pump-issues-with-0-0-19?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).openaps use pump723 iter_pump 2 ERROR month must be in 1..12 0000 0x0c 0x00 .. Traceback (most recent call last): File "/usr/local/bin/openaps-use", line 4, in <module> __import__('pkg_resources').run_script('openaps==0.0.8', 'openaps-use') File "/usr/local/lib/python2.7/dist-packages/setuptools-18.4-py2.7.egg/pkg_resources/__init__.py", line 735, in run_script File "/usr/local/lib/python2.7/dist-packages/setuptools-18.4-py2.7.egg/pkg_resources/__init__.py", line 1652, in run_script File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-py2.7.egg/EGG-INFO/scripts/openaps-use", line 63, in <module> app( ) File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-py2.7.egg/openaps/cli/__init__.py", line 44, in __call__ self.run(self.args) File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-py2.7.egg/EGG-INFO/scripts/openaps-use", line 57, in run output = app(args, self) File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-py2.7.egg/openaps/uses/__init__.py", line 92, in __call__ return self.method.selected(args)(args, app) File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-py2.7.egg/openaps/uses/__init__.py", line 31, in __call__ return self.method(args, app) File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-py2.7.egg/openaps/uses/use.py", line 45, in __call__ output = self.main(args, app) File "/usr/local/lib/python2.7/dist-packages/openaps-0.0.8-py2.7.egg/openaps/vendors/medtronic.py", line 373, in main for rec in self.range( ): File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.19-py2.7.egg/decocare/models/__init__.py", line 67, in __call__ for record in page: File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.19-py2.7.egg/decocare/models/__init__.py", line 46, in download_page for record in self.find_records(page): File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.19-py2.7.egg/decocare/models/__init__.py", line 139, in find_records records = decoder.decode( ) File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.19-py2.7.egg/decocare/history.py", line 805, in decode record = parse_record(self.stream, B, larger=larger, model=self.model) File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.19-py2.7.egg/decocare/history.py", line 737, in parse_record record.parse( head + date + body ) File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.19-py2.7.egg/decocare/records/base.py", line 66, in parse return self.decode( ) File "/usr/local/lib/python2.7/dist-packages/decocare-0.0.19-py2.7.egg/decocare/history.py", line 697, in decode return (dict(valid_date=date(*mid).isoformat())) ValueError: month must be in 1..12
The text was updated successfully, but these errors were encountered: