Coder Social home page Coder Social logo

openaps_reduce_comms's Introduction

openaps_reduce_comms

Helper scripts for use with openaps to reduce communications with CGM and pump.

I use openaps as a predictive model controller to manage my blood sugar/T1D. I use advanced features (auto-sensitivity and advanced meal assist) that require relatively long historical records from my CGM and my pump.

The issue:

  • My loop to gather the data runs every 3 minutes - yet each time it runs, I pull 1 day of data. Any existing data from pre-existing reports is deleted and renewed. This lack of reuse seems to reduce robustness (communications with pump and CGM can be problematic) - and I'm guessing also leads to reduced battery life since we are doing longer communication.

  • My loop is entirely independent of any external sources - it runs entirely off-line. The availability of wifi and even cell phone service is not guaranteed - but I will always have a need to manage T1D. Part of that management is understanding how you have been responding to food and insulin in the past (many people use Nightscout for this...).

  • Current wisdom on intend-to-bolus thinks that shareble is too unstable to use in offline "camping mode". Using the current script to minimize the amount of data pulled from the CGM, shareble is typically stable for a week before needing to reboot.

A fix: use some python scripts to manage the data flow. Save existing reports off to a CSV file, calculate how much extra data is needed for any new report, and fetch just that much from CGM/pump.

The end goal:

  • improve communication robustness
  • provide historical data for further analysis (visualisation and predictive models)

Current status:

  • bgHistoryDailyGap.py - working
  • readProfile_v2.py - working
  • reduceComms.sh - working
  • pumpHistoryDailyGap_v1.py - works on historical data, untested while looping

openaps_reduce_comms's People

Contributors

tazitoo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.