{"action":"created","issue":{"url":"https://api.github.com/repos/openaps/oref0/issues/132","repository_url":"https://api.github.com/repos/openaps/oref0","labels_url":"https://api.github.com/repos/openaps/oref0/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/openaps/oref0/issues/132/comments","events_url":"https://api.github.com/repos/openaps/oref0/issues/132/events","html_url":"https://github.com/openaps/oref0/issues/132","id":160519928,"number":132,"title":"Use reservoir data as alternative to pumphistory","user":{"login":"scottleibrand","id":6982790,"avatar_url":"https://avatars.githubusercontent.com/u/6982790?v=3","gravatar_id":"","url":"https://api.github.com/users/scottleibrand","html_url":"https://github.com/scottleibrand","followers_url":"https://api.github.com/users/scottleibrand/followers","following_url":"https://api.github.com/users/scottleibrand/following{/other_user}","gists_url":"https://api.github.com/users/scottleibrand/gists{/gist_id}","starred_url":"https://api.github.com/users/scottleibrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottleibrand/subscriptions","organizations_url":"https://api.github.com/users/scottleibrand/orgs","repos_url":"https://api.github.com/users/scottleibrand/repos","events_url":"https://api.github.com/users/scottleibrand/events{/privacy}","received_events_url":"https://api.github.com/users/scottleibrand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T20:47:12Z","updated_at":"2016-06-16T00:35:20Z","closed_at":null,"body":"@loudnate's Loop app for iOS does an excellent job of calculating IOB and looping using only the pump reservoir information (refreshed every 5 minutes), without ever having to pull a full pumphistory.  While there are lots of things (like NS uploads) we still want pumphistory for, it would be good to be able to use reservoir data as an alternative when we're having trouble refreshing pumphistory (or want to do a quick enact without waiting to refresh it).  This would probably require building some sort of reservoirhistory.json file and using whatever portions of it are more recent than the most recent pumphistory.json"},"comment":{"url":"https://api.github.com/repos/openaps/oref0/issues/comments/226358882","html_url":"https://github.com/openaps/oref0/issues/132#issuecomment-226358882","issue_url":"https://api.github.com/repos/openaps/oref0/issues/132","id":226358882,"user":{"login":"loudnate","id":212876,"avatar_url":"https://avatars.githubusercontent.com/u/212876?v=3","gravatar_id":"","url":"https://api.github.com/users/loudnate","html_url":"https://github.com/loudnate","followers_url":"https://api.github.com/users/loudnate/followers","following_url":"https://api.github.com/users/loudnate/following{/other_user}","gists_url":"https://api.github.com/users/loudnate/gists{/gist_id}","starred_url":"https://api.github.com/users/loudnate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loudnate/subscriptions","organizations_url":"https://api.github.com/users/loudnate/orgs","repos_url":"https://api.github.com/users/loudnate/repos","events_url":"https://api.github.com/users/loudnate/events{/privacy}","received_events_url":"https://api.github.com/users/loudnate/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T00:35:19Z","updated_at":"2016-06-16T00:35:19Z","body":"While prototyping Loop last year, I added this feature to mmhistorytools.\r\n\r\nThe idea is you take reservoir data and you convert it to pseudo temp-basal records, then you normalize those against the basal profile, and the output is suitable for IOB calculation.\r\n\r\nhttps://github.com/loudnate/openaps-mmhistorytools/blob/master/openapscontrib/mmhistorytools/historytools.py#L694\r\n\r\nhttps://github.com/loudnate/openaps-mmhistorytools/blob/master/openapscontrib/mmhistorytools/__init__.py#L432"}}
{"actor":{"display_login":"loudnate"}}