Skip to content

partial json for mm-latest bug workaround #2

Open

Description

@ktomy

Gor my pump history download doesn't work. I have commented out the download history line in mm-latest2.py (line 158)

This results in a partial json response which is not parsed bu UI.
normaly it should work even if one of the parameters (bolus, temp-basal, hostory, etc) doesn't return a usable result.

Now json result looks like:

'715'` {'low_reservoir_warn_point': 48, 'keypad_lock_status': 1, 'maxBasal': 1, 'temp_basal': {'percent': 100, 'type': 'Units/hour'}, 'paradigm_enabled': 0, 'insulinConcentration': 100, 'audio_bolus_enable': False, 'variable_bolus_enable': True, 'alarm': {'volume': 1, 'mode': 2}, 'rf_enable': False, 'block_enable': False, 'timeformat': 1, 'auto_off_duration_hrs': 0, 'audio_bolus_size': 0, 'selected_pattern': 0, 'patterns_enabled': False, 'insulin_action_type': 2, 'maxBolus': 2.0, 'low_reservoir_warn_type': 1} '2014-12-7T6:2:27' {'status': 'normal', 'bolusing': False, 'suspended': False} {'duration': 115, 'rate': 0.1} [{'start': '00:00:00', 'rate': 0.30000000000000004}, {'start': '02:00:00', 'rate': 0.15000000000000002}, {'start': '08:00:00', 'rate': 0.15000000000000002}, {'start': '09:00:00', 'rate': 0.25}, {'start': '10:00:00', 'rate': 0.2}, {'start': '11:00:00', 'rate': 0.15000000000000002}, {'start': '13:00:00', 'rate': 0.15000000000000002}, {'start': '14:00:00', 'rate': 0.25}, {'start': '15:00:00', 'rate': 0.25}, {'start': '16:00:00', 'rate': 0.30000000000000004}, {'start': '17:00:00', 'rate': 0.30000000000000004}, {'start': '20:00:00', 'rate': 0.2}, {'start': '22:00:00', 'rate': 0.30000000000000004}, {'start': '23:00:00', 'rate': 1.0}] 37.0

Activity

  1. kenstack commented on Dec 7, 2014

    @kenstack
    Owner

    Sorry let me make sure I understand - you commented out the history portion because the general latest tool was having issues with your pump on history. And ihawk then didnt parse just this portion? If so can you send me the entire output of mm-latest2 so I can see if the parser is having an issue? Thanks.

  2. ktomy commented on Dec 7, 2014

    @ktomy
    Author

    ihawk doesn't parse this output at all, no values shows up

  3. kenstack commented on Dec 7, 2014

    @kenstack
    Owner

    Ahh OK I understand - Ill check the loops in the am I see what you mean

  4. kenstack commented on Dec 7, 2014

    @kenstack
    Owner

    without history the IOB calculator obviously will not function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions