Skip to content

Wip/bewest/exporting#80

Merged
bewest merged 25 commits into
devfrom
wip/bewest/exporting
Mar 31, 2016
Merged

Wip/bewest/exporting#80
bewest merged 25 commits into
devfrom
wip/bewest/exporting

Conversation

@bewest

@bewest bewest commented Feb 12, 2016

Copy link
Copy Markdown
Member

No description provided.

This allows exporting and advertising services within the python ecosystem.
Also fix a bug handling input given programmatically vs sys.argv.
This forces argparser to use sys.argv using it's own natural mechanism (to
ignore 0th arg) for the high level tools.
bewest added 2 commits March 7, 2016 15:33
* Add set_clock for @amazaheri and friends.
* Add #oref0 annotations and other recommendations for @scottleibrand and friends.
@bewest

bewest commented Mar 14, 2016

Copy link
Copy Markdown
Member Author

openaps use pump -h

usage: openaps-use pump [-h] USAGE ...

optional arguments:
  -h, --help            show this help message and exit

## Device pump:
  vendor mmeowlink.vendors.mmeowlink

  mmeowlink - openaps driver for cc1111/cc1110 devices



  USAGE                 Usage Details
    bolus               Send bolus. [#warning!!!]
    filter_glucose_date
                        Search for glucose pages including begin and end dates
                        (iso 8601).
    filter_isig_date    Search for isig pages including begin and end dates
                        (iso 8601).
    iter_glucose        Read latest 100 glucose records
    iter_glucose_hours  Read latest n hours of glucose data
    iter_pump           Read latest 100 pump records
    iter_pump_hours     Read latest n hours of pump records
    model               Get model number [#oref0] [#recommended] [#safe]
    mytest              Testing read_settings
    read_basal_profile_A
                        Read basal profile A.
    read_basal_profile_B
                        Read basal profile B.
    read_basal_profile_std
                        Read default basal profile.
    read_battery_status
                        Check battery status. [#oref0]
    read_bg_targets     Read bg targets. [#oref0]
    read_carb_ratios    Read carb_ratios. [#oref0]
    read_clock          Read date/time of pump [#oref0]
    read_current_glucose_pages
                        Read current glucose pages.
    read_current_history_pages
                        Read current history pages.
    read_glucose_data   Read pump glucose page
    read_history_data   Read pump history page
    read_insulin_sensitivies
                        XXX: Deprecated. Don't use. Use
                        read_insulin_sensitivities instead.
    read_insulin_sensitivities
                        Read insulin sensitivities. [#oref0]
    read_selected_basal_profile
                        Fetch the currently selected basal profile. [#oref0]
    read_settings       Read settings. [#oref0]
    read_status         Get pump status
    read_temp_basal     Read temporary basal rates. [#oref0]
    reservoir           Get pump remaining insulin
    resume_pump         resume pumping.
    set_clock           Set clock.
    set_temp_basal      Set temporary basal rates. [#oref0]
    settings            Get pump settings
    status              Get pump status (alias for read_status)
    suspend_pump        Suspend pumping.

@bewest

bewest commented Mar 14, 2016

Copy link
Copy Markdown
Member Author

bewest@bewest-MacBookPro:~/Documents/openaps$ openaps use pump  -h | grep oref0
    model               Get model number [#oref0] [#recommended] [#safe]
                        Check battery status. [#oref0]
    read_bg_targets     Read bg targets. [#oref0]
    read_carb_ratios    Read carb_ratios. [#oref0]
    read_clock          Read date/time of pump [#oref0]
                        Read insulin sensitivities. [#oref0]
                        Fetch the currently selected basal profile. [#oref0]
    read_settings       Read settings. [#oref0]
    read_temp_basal     Read temporary basal rates. [#oref0]
    set_temp_basal      Set temporary basal rates. [#oref0]
bewest@bewest-MacBookPro:~/Documents/openaps$

bewest added 7 commits March 15, 2016 15:49
Allos turning of usb charging.
Use pkg_resources to find relevant Configurable's.
The change away from git commit -avm means some things need to be more
intentional about adding things to the index.

This should help #87 and @scottleibrand a bit more.
Comment thread openaps/devices/add.py Outdated
app.config.save( )
print "added", device.format_url( )
repo = app.git_repo( )
repo.git.add(['openaps.ini'], write_extension_data=False)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this fixes ca31305

bewest added 6 commits March 21, 2016 00:35
* ca31305
This emulates what git commit -a does.
* Also tweak programmatic re-use of high level cli commands.
The shell command was incorrectly storing [] for an empty list in the INI.
When retrieving the config, this does the wrong thing.  The to_ini and from_ini
were intended to help fix this kind of problem.
Print the generated command out.
@bewest bewest merged commit 88fc0de into dev Mar 31, 2016
ddaniels1 pushed a commit to ddaniels1/openaps that referenced this pull request Jun 13, 2016
ddaniels1 pushed a commit to ddaniels1/openaps that referenced this pull request Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants